Add LSB headers to the Debian init.d script
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Sat, 7 Nov 2009 17:02:38 +0000 (17:02 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Sat, 7 Nov 2009 17:02:38 +0000 (17:02 +0000)
See also issue #14864 .

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@228766 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/init.d/rc.debian.asterisk

index 889bd1e..6431d2d 100755 (executable)
@@ -26,6 +26,18 @@ ASTVARRUNDIR=__ASTERISK_VARRUN_DIR__
 ASTETCDIR=__ASTERISK_ETC_DIR__
 TRUE=/bin/true
 
+### BEGIN INIT INFO
+# Provides:            asterisk
+# Required-Start:      $local_fs
+# Required-Stop:       $local_fs
+# Should-Start:                dahdi mysql postgresql
+# Should-Stop:
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Asterisk PBX
+# Description:         the Asterisk Open Source PBX
+### END INIT INFO
+
 # Uncomment this ONLY if you know what you are doing.
 # export LD_ASSUME_KERNEL=2.4.1