Blob Blame History Raw
autofs-5.0.4 - add lsb init script parameter block

From: Ian Kent <raven@themaw.net>


---

 CHANGELOG             |    1 +
 redhat/autofs.init.in |   11 ++++++++++-
 samples/rc.autofs.in  |   11 ++++++++++-
 3 files changed, 21 insertions(+), 2 deletions(-)


diff --git a/CHANGELOG b/CHANGELOG
index 4df6a60..aab3209 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -30,6 +30,7 @@
 - fix return start status on fail.
 - fix double free in expire_proc().
 - another easy alloca replacements fix.
+- add LSB init script parameter block.
 
 4/11/2008 autofs-5.0.4
 -----------------------
diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in
index 471667e..0fd1777 100644
--- a/redhat/autofs.init.in
+++ b/redhat/autofs.init.in
@@ -6,7 +6,16 @@
 # processname: /usr/sbin/automount
 # config: /etc/auto.master
 # description: Automounts filesystems on demand
-
+#
+### BEGIN INIT INFO
+# Provides: $autofs
+# Should-Start: $network $ypbind
+# Should-Stop: $network $ypbind
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Automounts filesystems on demand
+# Description: Automounts filesystems on demand
+### END INIT INFO
 #
 # Location of the automount daemon and the init directory
 #
diff --git a/samples/rc.autofs.in b/samples/rc.autofs.in
index 2877fe2..63a0c5d 100644
--- a/samples/rc.autofs.in
+++ b/samples/rc.autofs.in
@@ -5,7 +5,16 @@
 # On most distributions, this file should be called:
 # /etc/rc.d/init.d/autofs or /etc/init.d/autofs or /etc/rc.d/rc.autofs
 #
-
+#
+### BEGIN INIT INFO
+# Provides: $autofs
+# Should-Start: $network $ypbind
+# Should-Stop: $network $ypbind
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Automounts filesystems on demand
+# Description: Automounts filesystems on demand
+### END INIT INFO
 #
 # Location of the automount daemon and the init directory
 #