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

Name

Open hinantin opened this issue 10 years ago • 3 comments

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)

hinantin avatar Feb 26 '15 12:02 hinantin

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

sadams avatar Apr 01 '15 12:04 sadams

hahhhh that fixed my service myapp status start stop command

thank you @hinantin

ghost avatar Oct 29 '15 14:10 ghost

I had the same problem on centos.

Hyphen-ated avatar Jan 28 '16 21:01 Hyphen-ated