Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
0 is not a valid signal. I think it will check for the existence of process with $PID, routes errors and stdout to /dev/null and sets the return code to 1 if it was found and 0 if not.
well man page of kill says that it will kill all processes belonging to that group...that is what made me confused..
If that be correct, then say if i run that code in proftpd, then it is going to kill all proftpd child processes so far as i believe.
Quote:
Originally Posted by crabboy
0 is not a valid signal. I think it will check for the existence of process with $PID, routes errors and stdout to /dev/null and sets the return code to 1 if it was found and 0 if not.
It is checking to see if the PID in the pid file is valid. kill -0 PID will return a 1 if the process with PID is alive and if so the script will exit. If not, it will restart the process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.