Gentoo Archives: gentoo-user

From: Dr Rainer Woitok <rainer.woitok@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Logfiles with dates in their names
Date: Sat, 09 Jan 2021 12:12:28
Message-Id: 24569.40351.516302.854232@tux.speedport.ip
1 Greetings,
3 after having installed "syslog-ng" I configured it to add the current
4 date to each logfile name and thus to start every day with a new log-
5 file. That way logfile cleaning is just a matter of deleting old files
6 rather than perpetually renaming them and thus collecting zillions of
7 copies of the same logfile under different names in my daily backups.
9 Up to now trying the same with the OpenRC logfile "/var/log/rc.log"
10 failed however: I tried using a named pipe instead of "/var/log/rc.log",
11 but it didn't work out. The system stalled in the middle of both, the
12 shutdown and boot processes.
14 $ grep OpenRC /etc/syslog-ng/syslog-ng.conf /etc/rc.conf
15 /etc/syslog-ng/syslog-ng.conf:source orc { pipe("/var/tmp/OpenRC"); };
16 /etc/rc.conf:rc_log_path="/var/tmp/OpenRC"
17 $ ls -l /var/tmp/OpenRC
18 prw------- 1 root root 0 2021-01-08 13:44 /var/tmp/OpenRC
19 $
21 What did I miss?
23 Sincerely,
24 Rainer