Hi All,
I'm trying to build a start up script, wud be gr8 if any one can explain what the below field means and how can i check it for my script.
DAEMON_PATH="/home/wes/Development/projects/myapp"
DAEMON=myapp
DAEMONOPTS="-my opts"
NAME=myapp
DESC="My daemon description"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
These are copied from a portal.
Note:
Need to run script as a different user.
Thanks
Karthick
gull04
August 29, 2014, 7:44pm
2
Hi Karthick,
Just a little bit more info would be good, like the OS and the shell that you expect this to run in!
Regards
Dave
Oops, sorry dave should have given it before.
I'm using a ubuntu server and it would be a bash script.
Thanks
Karthick
gull04
August 29, 2014, 8:01pm
4
Hi Karthick,
OK, well there is a lot of quite good stuff out there for Ubuntu. A good place to have a look at when searching for this type of info is github and there are lots of examples, check out this one here.
It may be of some help.
Regards
Dave