Hi All,
I modified /etc/syslog.conf and execute kill -HUP syslogd_PID. There's nothing changes on the PID when I did ps -ef|grep syslogd. It's the same. Do you think it restarted the process of syslogd?
Thanks in advance.
Hi All,
I modified /etc/syslog.conf and execute kill -HUP syslogd_PID. There's nothing changes on the PID when I did ps -ef|grep syslogd. It's the same. Do you think it restarted the process of syslogd?
Thanks in advance.
That is exactly what you expect when you kill -HUP a daemon, the pid should not change.
You could always change your script to add the output of the command afterwards such as:
kill -HUP syslog_pid ; echo $? >> some_file
if there are any non 0s in there, you have a problem
Doing kill -HUP will not restart the process. It will just tell it to reread syslog.conf. What you are seeing is as expected.