Skip to content

Conversation

kellyselden
Copy link

I'm running as a non-root user that doesn't have access to /var/run. What I have to do so that the user has access to the pid file is to create it beforehand:

sudo touch /var/run/$appName.pid
sudo chown $userName /var/run/$appName.pid

But this results in Already running all the time because the script checks only for file existence. My change checks for something in the file too.

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.

1 participant