Good day, Matt! Thanks for nice job ;-) But i think the best way to describe exactly runlevels in init.d script If there will be '-' then "chkconfig service on" will create only start scripts for default runlevels '2345' but it will not create stop scripts for levels '016' (to checkup by seeing to ls -l /etc/rc.d/rc6.d/K* ;-) after chkconfig ... on) So if your some_website file will be included to a system start-up scripts through "chkconfig service on" command the Dancer application will be stopped at shutdown (6 runlevel) only by killall script by kill signal (i think better way by your 'stop' command - service some_website stop at stop priority as your '15') Perlover 2011/10/20 Matthew Vickers <mvickers@quispiam.com>:
Hi All,
I have knocked up a very basic init script for centos, I suspect it will work for other RH derivatives also.
It can be found at https://gist.github.com/1300467. Modify it to suit, rename it appropriately, place it in /etc/init.d. Test it works as expected with:
service some_website start
service some_website stop
service some_website restart
and then turn it on
chkconfig some_website on
Comments, changes, suggestions welcome.
Cheers
Matt _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users