Re: tmpfs

Boris via leaf-user <[email protected]> Mon, 2 Dec 2024 17:59:48 +0100
Newsgroups gmane.linux.leaf.user
Message-ID <[email protected]>
Hej Erich,

Am 02.12.24 um 17:38 schrieb Erich Titl:
> Hi Boris
> 
> Am 02.12.2024 um 16:36 schrieb Boris via leaf-user:
>> Am 25.11.24 um 17:28 schrieb KP.Kirchdoerfer:
>>> Hi,
>>>
> ....>
>> not too big but wrong as on the start of the thread....
>>
>> # lsof | grep /var/log/
>> [snip]
>> 23822    /usr/sbin/ntpd    4    /var/log/ntpd
>> 23822    /usr/sbin/ntpd    5    /var/log/ntpstats/loopstats.20241202 
>> (deleted)
>> 23822    /usr/sbin/ntpd    8    /var/log/ntpstats/peerstats.20241202 
>> (deleted)
>> 27345    /usr/sbin/hostapd    3    /var/log/hostapd.log (deleted)
> 
> So the ntp daemon still had these files under control but they were 
> deleted by, maybe logrotate.

.... and the hostapd daemon also does.

> 
> Maybe we should add another option to the logrotate script, enabling it 
> to stop the daemon before savelog brutally removes the file.
> 
>>
>> # l /var/log/hostapd*
>> -rw-r-----    1 root     adm              0 Nov 26 06:42 hostapd.log
>> -rw-r-----    1 root     root        209376 Nov 26 06:42 hostapd.log.0.gz
>> -rw-r-----    1 root     root        188060 Nov 22 06:42 hostapd.log.1.gz
>> -rw-r--r--    1 root     root       1631914 Nov 19 22:05 hostapd.log.2
>> -rw-r-----    1 root     root        113904 Nov  9 06:42 hostapd.log.2.gz
> 
> This is not related to ntpd....

No, but hostapd....

> 
>>
>> mmmhhhh....
>> And after /etc/init.de/hostapd restart:
>>
>> # l /var/log/hostapd*
>> -rw-r-----    1 root     adm         154492 Dec  2 16:32 /var/log/ 
>> hostapd.log
>> -rw-r-----    1 root     root        209376 Nov 26 06:42 /var/log/ 
>> hostapd.log.0.gz
>> -rw-r-----    1 root     root        188060 Nov 22 06:42 /var/log/ 
>> hostapd.log.1.gz
>> -rw-r--r--    1 root     root       1631914 Nov 19 22:05 /var/log/ 
>> hostapd.log.2
>> -rw-r-----    1 root     root        113904 Nov  9 06:42 /var/log/ 
>> hostapd.log.2.gz
> 
> How are the logging settings for hostapd. If it logs to syslog then 
> restarting hostapd should not do anything as log file control is done by 
> the syslog daemon.

logger_syslog=-1
logger_syslog_level=2
#logger_stdout=-1
#logger_stdout_level=2

> If the log is somehow controlled by the hostapd daemon then of course 
> restarting this would have the desired effect.

Yes it did.

As far as I can tell rsyslogd must have been stopped already in this state.

Boris


------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/