I am interested in testing for a running process and, if it is not running, restarting it.
Right now, I'm writing /tmp/app.pid files for everything I run. If I need to stop a running app, I call:
Code: Select all
(destroy-pid (int (read-file "/tmp/app.pid")))
But, I want to test to see if the pid is actually running. Is there a clean, easy way to do this (something I am missing in unix.lsp, for example?)
Thanks.