I'm trying to use start stop daemon to check if a python script is running. The catch is if I execute
./myscript.py
what's actually running is /usr/bin/python, and I might want multiple instances of python running. So I'm interested in getting start-stop-daemon to specifically check for a python which is running a certain script. Is there a way to do this, or another clever way? Sadly pid/lock files don't work well here because the daemon tends to terminate unexpectedly/filesystem issues (not my server).
Bookmarks