Hey
Still works. I was in the same boat today, and this helped to fix it.
Thanks
–
booktrunk
booktrunk’s Profile: http://forums.novell.com/member.php?userid=38054
View this thread: http://forums.novell.com/showthread.php?t=217890
Hey
Still works. I was in the same boat today, and this helped to fix it.
Thanks
booktrunk’s Profile: http://forums.novell.com/member.php?userid=38054
View this thread: http://forums.novell.com/showthread.php?t=217890
You’re welcome!
It’s funny how this pid mechanism has been around since the inception
of Unix (I think), and yet, it is still quite flawed, as there is no way
to tell via the presence of a small text file (using this method)
whether a process is alive and well, or whether it just quit
unexpectedly and the system left the pid file in place. There are ways
to check whether a pid is valid (e.g., Monit does this), but it must be
done at the application level (i.e., each executable must handle this
checking on its own). Shortsighted, indeed…
Anyway, glad my little snippet came in handy. Remember it for other
stubborn processes.
Rachelsdad’s Profile: http://forums.novell.com/member.php?userid=5435
View this thread: http://forums.novell.com/showthread.php?t=217890