Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] syslogd hibernating
Date: Fri, 15 Jan 2021 15:08:46
Message-Id: b0fe1549-d45a-612c-cc3e-157d3eeaaf48@web.de
In Reply to: Re: [gentoo-user] syslogd hibernating by Michael
1 On 1/15/21 10:24 AM, Michael wrote:
2 > On Friday, 15 January 2021 08:47:18 GMT n952162 wrote:
3 >> Hello,
4 >>
5 >> can anyone explain this?
6 >>
7 >> I noticed today (15. January) that the /var/log/{messages,kern.log,etc.}
8 >> files on a box were last touched on 22. November.
9 >>
10 >> sysklogd was in the rc-open /started/ state and was running.
11 >>
12 >> The configuration file, /etc/syslog.conf matches completely that file on
13 >> another machine of mine, where the logs are properly updated.
14 >>
15 >> /etc/syslog.d/ was empty on both machines.
16 >>
17 >> I sent the process a HUP signal, as follows
18 >>
19 >> sudo kill -HUP $(cat /var/run/syslogd.pid )
20 >>
21 >> and all the log files were immediately updated and reporting.
22 >>
23 >> I rebooted my machine, and the log files are untouched, it is again
24 >> hibernating.
25 > Do you get something like this on your system?
26 >
27 > $ rc-update -s -v | grep syslog
28 > syslog-ng | default
29 >
30 > and,
31 >
32 > $ rc-service -v syslog-ng status
33 > * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/
34 > syslog-ng status
35 > * status: started
36 >
37 $ rc-service -v syslog-ng status
38  * rc-service: service `syslog-ng' does not exist
39
40 $ rc-service -v syslog status
41  * rc-service: service `syslog' does not exist
42
43 $ rc-service -v syslogd status
44  * rc-service: service `syslogd' does not exist
45
46 $ rc-service -v sysklogd status
47  * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh
48 /etc/init.d/sysklogd status
49  * status: started
50
51 $ rc-update -s -v | grep syslog
52
53 $ rc-update -s -v | grep sysklog
54              sysklogd |      default                    sysinit
55
56
57 I ran that as a script on a machine where the logs are properly updated:
58
59 01~>bash -x  /tmp/test
60 + rc-service -v syslog-ng status
61  * rc-service: service `syslog-ng' does not exist
62 + rc-service -v syslog status
63  * rc-service: service `syslog' does not exist
64 + rc-service -v syslogd status
65  * rc-service: service `syslogd' does not exist
66 + rc-service -v sysklogd status
67  * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh
68 /etc/init.d/sysklogd status
69  * status: started
70 + rc-update -s -v
71 + grep syslog
72 + rc-update -s -v
73 + grep sysklog
74              sysklogd |      default

Replies

Subject Author
Re: [gentoo-user] syslogd hibernating Peter Humphrey <peter@××××××××××××.uk>