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

Name #9

Open
hinantin opened this issue Feb 26, 2015 · 3 comments
Open

Name #9

hinantin opened this issue Feb 26, 2015 · 3 comments

Comments

@hinantin
Copy link

Shouldn't it be better to assign the value of the name variable manually instead of receiving the name of the script???. Because in Ubuntu the first time the script is runned by the system it appends the prefix S/Kxx to the pid file, causing commands start, stop and status to fail, it took me a while to figure out what was going on with the script.

name=basename $0

name="appname"

Thanks for your template, it is such a help for newbies. (y)

@sadams
Copy link

sadams commented Apr 1, 2015

i had same problem!
thanks for both template and reporting this issue.

@ghost
Copy link

ghost commented Oct 29, 2015

hahhhh that fixed my service myapp status start stop command

thank you @hinantin

@Hyphen-ated
Copy link

I had the same problem on centos.

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

No branches or pull requests

2 participants