Skip to content

Change status function to check cmdline of the pid...#1

Open
RedKrieg wants to merge 1 commit intokasun:masterfrom
RedKrieg:patch-1
Open

Change status function to check cmdline of the pid...#1
RedKrieg wants to merge 1 commit intokasun:masterfrom
RedKrieg:patch-1

Conversation

@RedKrieg
Copy link

...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.

…file, 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants