Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for file with content #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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