I don't agree so much.

some time when a system is reboot unnormally, named doesn't have the chance to 
remove its pid file.
(when OS is shutdown normally, OS sends SIGTERM to named, named can exit and 
remove its own pid file.)
after system is started, the pid number in name's pid file is maybe another 
process's.
so kill -0 `cat named.pid` is successful, but named is not running at this 
time. 
Am I right?


 > Standard methodology would be to read the contents of the PID file and 
 > see if that process is running (traditionally kill -0 $pid can be used 
 > to non-intrusively check whether a given process is running). 
 >  
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to