OK - Let's say I'm using the config file. When the user wants to stop the specific instance of the daemon, he uses the initscript with the parameter "stop" and the daemon is "killed" according to the pid file.
But the problem is with the "status" - If I need to check if the specific instance is up, how should I check it only for the specific instance? Relying only on the specific pid or lock file is not good enough, since when the instance crashed for some reason, these files are not deleted altought the instance is down.
Last edited by c_golan; 12-20-2007 at 05:38 AM.