1 |
On 1/15/21 5:29 PM, n952162 wrote: |
2 |
> On 1/15/21 4:30 PM, Michael wrote: |
3 |
>> On Friday, 15 January 2021 15:23:34 GMT Peter Humphrey wrote: |
4 |
>>> On Friday, 15 January 2021 15:08:15 GMT n952162 wrote: |
5 |
>>>> On 1/15/21 10:24 AM, Michael wrote: |
6 |
>>>>> On Friday, 15 January 2021 08:47:18 GMT n952162 wrote: |
7 |
>>>>>> Hello, |
8 |
>>>>>> |
9 |
>>>>>> can anyone explain this? |
10 |
>>>>>> |
11 |
>>>>>> I noticed today (15. January) that the |
12 |
>>>>>> /var/log/{messages,kern.log,etc.} |
13 |
>>>>>> files on a box were last touched on 22. November. |
14 |
>>>>>> |
15 |
>>>>>> sysklogd was in the rc-open /started/ state and was running. |
16 |
>>>>>> |
17 |
>>>>>> The configuration file, /etc/syslog.conf matches completely that |
18 |
>>>>>> file |
19 |
>>>>>> on |
20 |
>>>>>> another machine of mine, where the logs are properly updated. |
21 |
>>>>>> |
22 |
>>>>>> /etc/syslog.d/ was empty on both machines. |
23 |
>>>>>> |
24 |
>>>>>> I sent the process a HUP signal, as follows |
25 |
>>>>>> |
26 |
>>>>>> sudo kill -HUP $(cat /var/run/syslogd.pid ) |
27 |
>>>>>> |
28 |
>>>>>> and all the log files were immediately updated and reporting. |
29 |
>>>>>> |
30 |
>>>>>> I rebooted my machine, and the log files are untouched, it is again |
31 |
>>>>>> hibernating. |
32 |
>>>>> Do you get something like this on your system? |
33 |
>>>>> |
34 |
>>>>> $ rc-update -s -v | grep syslog |
35 |
>>>>> |
36 |
>>>>> syslog-ng | default |
37 |
>>>>> |
38 |
>>>>> and, |
39 |
>>>>> |
40 |
>>>>> $ rc-service -v syslog-ng status |
41 |
>>>>> |
42 |
>>>>> * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh |
43 |
>>>>> /etc/init.d/ |
44 |
>>>>> |
45 |
>>>>> syslog-ng status |
46 |
>>>>> |
47 |
>>>>> * status: started |
48 |
>>>> $ rc-service -v syslog-ng status |
49 |
>>>> |
50 |
>>>> * rc-service: service `syslog-ng' does not exist |
51 |
>>>> |
52 |
>>>> $ rc-service -v syslog status |
53 |
>>>> |
54 |
>>>> * rc-service: service `syslog' does not exist |
55 |
>>>> |
56 |
>>>> $ rc-service -v syslogd status |
57 |
>>>> |
58 |
>>>> * rc-service: service `syslogd' does not exist |
59 |
>>>> |
60 |
>>>> $ rc-service -v sysklogd status |
61 |
>>>> |
62 |
>>>> * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh |
63 |
>>>> |
64 |
>>>> /etc/init.d/sysklogd status |
65 |
>>>> |
66 |
>>>> * status: started |
67 |
>>>> |
68 |
>>>> $ rc-update -s -v | grep syslog |
69 |
>>>> |
70 |
>>>> $ rc-update -s -v | grep sysklog |
71 |
>>>> |
72 |
>>>> sysklogd | default sysinit |
73 |
>>>> |
74 |
>>>> I ran that as a script on a machine where the logs are properly |
75 |
>>>> updated: |
76 |
>>>> |
77 |
>>>> 01~>bash -x /tmp/test |
78 |
>>>> + rc-service -v syslog-ng status |
79 |
>>>> |
80 |
>>>> * rc-service: service `syslog-ng' does not exist |
81 |
>>>> |
82 |
>>>> + rc-service -v syslog status |
83 |
>>>> |
84 |
>>>> * rc-service: service `syslog' does not exist |
85 |
>>>> |
86 |
>>>> + rc-service -v syslogd status |
87 |
>>>> |
88 |
>>>> * rc-service: service `syslogd' does not exist |
89 |
>>>> |
90 |
>>>> + rc-service -v sysklogd status |
91 |
>>>> |
92 |
>>>> * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh |
93 |
>>>> |
94 |
>>>> /etc/init.d/sysklogd status |
95 |
>>>> |
96 |
>>>> * status: started |
97 |
>>>> |
98 |
>>>> + rc-update -s -v |
99 |
>>>> + grep syslog |
100 |
>>>> + rc-update -s -v |
101 |
>>>> + grep sysklog |
102 |
>>>> |
103 |
>>>> sysklogd | default |
104 |
>>> Substitute your syslog program's name for syslog-ng. Michael did say |
105 |
>>> "something like." |
106 |
>> Yes, quite, other log daemons are available. :-) |
107 |
>> |
108 |
>> It seems your PC on which sysklogd works as expected has its rc |
109 |
>> script only on |
110 |
>> 'default' runlevel, rather than default +sysinit. I don't know if |
111 |
>> sysinit is |
112 |
>> required. If you remove sysinit and restart sysklogd from a terminal |
113 |
>> does it |
114 |
>> spew out any errors? |
115 |
> |
116 |
> |
117 |
> Oh, I missed that sysinit way out there on the left ;-) |
118 |
> |
119 |
(correction: way out there on the right) |