Do you think it is safe to delete messages file from /var/log? I deleted it and recreate the log file, but no log writes in the file. Should I reboot the machine?
Thanks lgarner. Yes I touch to create the log file. Could you give me a little detail about what I should do now? I am new bee. Should I stop syslogd first? Should I delete log file I created by touch?
The file's ok. Usually you'd enter "/etc/init.d/syslog restart" or maybe "service restart syslog". You can also "kill -HUP" the process; there should be a file like /etc/logrotate.d/syslog with the command syntax.
For future reference, if you want to clear out a file (while it is still in use), issue a "> filename". This is a shortcut to copy /dev/null to the file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.