]> arthur.barton.de Git - ngircd-alex.git/blobdiff - contrib/Debian/ngircd.init
Added LSB compliant header.
[ngircd-alex.git] / contrib / Debian / ngircd.init
index 769839533b88fdb4a5e9bb186112a8c4da151c65..c4a147904011dc62a35ce9abfb4c5995bc8da2d5 100755 (executable)
@@ -2,16 +2,29 @@
 #
 # ngIRCd start and stop script for Debian-based systems
 #
-# $Id: ngircd.init,v 1.4 2005/02/14 00:44:48 alex Exp $
+# $Id: ngircd.init,v 1.7 2006/12/26 14:43:46 alex Exp $
 #
 
+### BEGIN INIT INFO
+# Provides:            ircd
+# Required-Start:      $local_fs
+# Required-Stop:       $local_fs
+# Should-Start:                $syslog $network
+# Should-Stop:         $syslog $network
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Next Generation IRC Server
+### END INIT INFO
+
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/sbin/ngircd
 NAME=ngIRCd
-BASENAME=`basename $0`
 DESC="IRC daemon"
 PARAMS=""
 
+test -h "$0" && me=`readlink $0` || me="$0"
+BASENAME=`basename $me`
+
 test -f /etc/default/$BASENAME && . /etc/default/$BASENAME
 
 test -x $DAEMON || exit 0