chiark / gitweb /
disobedience/disobedience.c: Stop telling `getopt' to accept `-H' and `-C'.
[disorder] / examples / disorder.init.in
index b752adc57e9b90ea5875fcacda34eec072dc2bc2..5e1504405ab30c21174ad30dbb54c573d8634779 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+### BEGIN INIT INFO
+# Provides:          disorder
+# Required-Start:    $local_fs $network $named $remote_fs $syslog $time
+# Required-Stop:     $local_fs $network $named $remote_fs $syslog $time
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start and stop DisOrder
+# Description:       DisOrder is a multi-user software jukebox.
+### END INIT INFO
+
 set -e
 
+. /lib/lsb/init-functions
+
 DAEMON=sbindir/disorderd
 CLIENT="bindir/disorder --local"
 
 PATH="$PATH:sbindir"
 
+if [ -r /etc/default/disorder ]; then
+  . sysconfdir/default/disorder
+fi
+
 start_debian() {
   printf "Starting DisOrder server: disorderd"
   start-stop-daemon -S -q -x ${DAEMON}