cd /etc/init vi scriptFileName.conf
start on stopped rc RUNLEVEL=[12345] stop on runlevel [!12345] respawn exec /you/respawned/script.sh -your -parameters
start scriptFileName