add LSB headers in the initx script
authorChristian Arnold <arnold@schlittermann.de>
Tue, 02 Aug 2011 11:41:30 +0200
changeset 20 e1fd6b0ff9b6
parent 18 6e01e5510a8f
child 21 0df475b07bbf
add LSB headers in the initx script
dns-autoslave
rc.dns-autoslave
--- a/dns-autoslave	Tue May 25 19:35:38 2010 +0000
+++ b/dns-autoslave	Tue Aug 02 11:41:30 2011 +0200
@@ -1,6 +1,4 @@
 #! /usr/bin/perl
-# $Id$
-# $URL$
 
 use strict;
 use warnings;
@@ -20,10 +18,10 @@
 
 use constant CONFIG => (
     { CASE => 1 },
-    dev =>	{ ARGS => "=s", DEFAULT => "eth0", ALIAS => "interface" },
-    filter =>	{ ARGS => "=s", DEFAULT => "udp and src host (%accept) and dst port domain" },
-    accept =>	{ ARGS => "=s" },
-    pid =>	{ ARGS => "=s",	DEFAULT => "/var/run/".ME.".pid" },
+    dev =>      { ARGS => "=s", DEFAULT => "eth0", ALIAS => "interface" },
+    filter =>   { ARGS => "=s", DEFAULT => "udp and src host (%accept) and dst port domain" },
+    accept =>   { ARGS => "=s" },
+    pid =>      { ARGS => "=s",	DEFAULT => "/var/run/".ME.".pid" },
 );
 
 sub process($$$);
--- a/rc.dns-autoslave	Tue May 25 19:35:38 2010 +0000
+++ b/rc.dns-autoslave	Tue Aug 02 11:41:30 2011 +0200
@@ -1,6 +1,15 @@
 #! /bin/sh 
-# $Id$
-# $URL$
+
+### BEGIN INIT INFO
+# Provides:          dns-autoslave
+# Required-Start:    $local_fs $remote_fs $syslog $named $network $time
+# Required-Stop:     $local_fs $remote_fs $syslog $named $network
+# Should-Start:
+# Should-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start/Stop the dns-autoslave daemon
+### END INIT INFO
 
 DAEMON=/usr/local/sbin/dns-autoslave
 PIDFILE=/var/run/`basename $DAEMON`.pid