* [gentoo-user] Logfiles with dates in their names
@ 2021-01-09 12:12 Dr Rainer Woitok
0 siblings, 0 replies; only message in thread
From: Dr Rainer Woitok @ 2021-01-09 12:12 UTC (permalink / raw
To: gentoo-user
Greetings,
after having installed "syslog-ng" I configured it to add the current
date to each logfile name and thus to start every day with a new log-
file. That way logfile cleaning is just a matter of deleting old files
rather than perpetually renaming them and thus collecting zillions of
copies of the same logfile under different names in my daily backups.
Up to now trying the same with the OpenRC logfile "/var/log/rc.log"
failed however: I tried using a named pipe instead of "/var/log/rc.log",
but it didn't work out. The system stalled in the middle of both, the
shutdown and boot processes.
$ grep OpenRC /etc/syslog-ng/syslog-ng.conf /etc/rc.conf
/etc/syslog-ng/syslog-ng.conf:source orc { pipe("/var/tmp/OpenRC"); };
/etc/rc.conf:rc_log_path="/var/tmp/OpenRC"
$ ls -l /var/tmp/OpenRC
prw------- 1 root root 0 2021-01-08 13:44 /var/tmp/OpenRC
$
What did I miss?
Sincerely,
Rainer
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-09 12:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-09 12:12 [gentoo-user] Logfiles with dates in their names Dr Rainer Woitok
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox