¿Cómo registro syslog en la consola virtual desde systemd?


0

Esto falla:

$ cat /etc/systemd/system/getty@tty8.service.d/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

No se puede encontrar nada en la web ...

Respuestas:


0

Resolví parcialmente mi problema usando el paquete 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"

Pero la opción menos --follow-name no funciona como se explica aquí: http://manpages.ubuntu.com/manpages/trusty/man5/console-log.conf.5.html

No hay mensaje de error en syslog.

Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.