View Single Post
Posts: 235 | Thanked: 89 times | Joined on Oct 2009 @ italy
#374
Originally Posted by x-lette View Post
Deleting syslog's logfile without doing a reload of syslog daemon is no good idea because the file is still opened by the daemon. You can either rename the file and then force a reload of syslog or you stop syslog, delete the file and start it again.
Another way of preventing root partition from getting filled would be to put logfile to another partition. you can edit /etc/syslog.conf and change path to logfiles. But you should not put it to MyDocs as this may prevent partition from being unmounted and used via usb.
Thank you for your advice
I just tought this possibility but I prefer delete syslog everyday. I'm interested to read it just in case of problem (fortunately not everyday ). I noticed that if I delete it I've to recreate a new one or wait till next reboot of device otherwise I loose it. In this case I should delete the file and create a new or just delete inside syslog remaining the file.
But main problem remain, my script should delete it at prefixed hour:min everyday by alarmed but...nothing happens. syslog still there!!
__________________
If you found my post useful please thank me, I appreciate!