Hi,
You probably removed the files and created them again while syslog was still running, if you do that the link between the file and the program is lost and needs to be recreated.
So you need to restart the syslog daemon. You don't mention your distro so I can only give some pointers on how to do this:
1) Look for the syslogd process among all your processes, get the pid and give it a 'kick'
$ ps -ef | grep syslog
root 29845 1 0 Mar27 ? 00:00:04 syslogd -r -m 0
$ kill -SIGHUP 29845
2) Find the start/stop script that should reside in your init.d directory, mine is called sysklogd.
Just got to the init.d dir and do:
$ sysklogd restart
PS: You should take a look at logrotate, this program will check logfiles (size and/or date) and archives old ones (optionally) and creates new ones on-the-fly.
Hope this helps.
|