YapDi
YapDi copied to clipboard
Change status function to check cmdline of the pid...
...referenced in the pidfile, removing the pidfile if cmdline doesn't match the calling script name. This change resolves problems with a stale pid after reboot, as well as a pid file pointing to another process's pid. Should work as long as sys.argv[0].split('/')[-1] doesn't change after execution. I needed this to resolve problems when issuing a 'start' after reboot.