1 |
Greetings, |
2 |
|
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. |
8 |
|
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. |
13 |
|
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 |
$ |
20 |
|
21 |
What did I miss? |
22 |
|
23 |
Sincerely, |
24 |
Rainer |