init-script-template icon indicating copy to clipboard operation
init-script-template copied to clipboard

check for file with content

Open kellyselden opened this issue 10 years ago • 0 comments

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.

kellyselden avatar Dec 07 '15 16:12 kellyselden