Como faço para registrar o syslog no console virtual a partir do systemd?

0

Isso falha:

$ cat /etc/systemd/system/[email protected]/override.conf 
[Service]
ExecStart=
ExecStart=-/usr/bin/tail -f /var/log/syslog


Aug  2 11:28:22 darts02 tail[317]: Aug  2 11:28:18 darts02 tail[317]: Aug  2 11:28:15 darts02 tail[317]: rts02 tail[317]: Aug  2 11:27:25 da
Aug  2 11:28:22 darts02 tail[317]: Aug  2 11:28:18 darts02 tail[317]: Aug  2 11:28:15 darts02 tail[317]: Aug  2 11:28:12 darts02 tail[317]: rts02 tail[317]: Aug  2 11:27:25 da
Aug  2 11:28:22 darts02 tail[317]: Aug  2 11:28:18 darts02 tail[317]: Aug  2 11:28:15 darts02 tail[317]: Aug  2 11:28:12 darts02 tail[317]: Aug  2 11:28:10 darts02 tail[317]: rts02 tail[317]: Aug  2 11:27:24 da
Aug  2 11:28:22 darts02 tail[317]: Aug  2 11:28:18 darts02 tail[317]: Aug  2 11:28:15 darts02 tail[317]: Aug  2 11:28:12 darts02 tail[317]: Aug  2 11:28:10 darts02 tail[317]: Aug  2 11:28:08 darts02 tail[317]: rts02 tail[317]: Aug  2 11:27:24 da

Não é possível encontrar nada na Web ...

    
por JPT 02.08.2018 / 12:44

1 resposta

0

Eu resolvi parcialmente meu problema usando o pacote APT apt: // console-log:

# /etc/console-log.conf -- configuration file for console-log.
# see console-log.conf(5) for details

# works
tty 9
file /var/log/syslog
group adm # needed in debian

# doesn't work as Xorg.log does not exist yet.
tty 8
file /var/log/Xorg.0.log
less_opts "--LONG-PROMPT --chop-long-lines --jump-target=10 --max-forw-scroll=100 --window=-4 --follow-name"

Mas a menor opção --follow-name não funciona como explicado aqui: link

Nenhuma mensagem de erro no syslog.

    
por 16.08.2018 / 17:08