This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== skeleton a init script structure ===== <code> #!/bin/bash ### BEGIN INIT INFO # Provides: scriptname # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO SCRIPT= RUNAS= start() { } stop() { } status() { } case "$1" in start) start ;; stop) stop ;; status) status ;; restart) stop start ;; *) echo "Usage: $0 {start|stop|restart|status}" esac </code> ==== References ==== * https://gist.github.com/naholyr/4275302