#!/bin/bash # # # BEGIN INIT INFO # Provides: # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: # Description: # Short-Description: # END INIT INFO case "\$1" in start) start-stop-daemon --exec --start /home/david/mydaemond ;; stop) start-stop-daemon --exec --stop /home/david/mydaemond ;; restart|reload) start-stop-daemon --exec --stop /home/david/mydaemond start-stop-daemon --exec --start /home/david/mydaemond ;; esac