It's fairly easy to copy a simple existing one like /etc/init.d/snmpd and edit it to your liking. Then do a 'chkconfig --add myapp', 'chkconfig myapp on' , /etc/init.d/myapp start
Another option would be to install 'screen' which will allow you to disconnect your session then logoff from ssh
cheers
|