1

keep linux subsystem service up and running forever

view story
linux-howto

http://serverfault.com – I have created a subsystem file which runs java program I have created. The subsystem file resides in /etc/init.d and allows me to stop and start the service with a consistent interface (start and stop). It is based off of this tutorial: http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/boot.html Here is what the script looks like: #!/bin/sh # # /etc/init.d/mysystem # Subsystem file for "MySystem" server # # chkconfig: 2345 95 05 # description: MySystem server daemon # # processname: MySystem # config: /etc/MySystem/mySystem.conf # config: /etc/sysconfig/mySystem # pidfile: /var/run/MySyste (HowTos)