[PATCH 06/11] Add an "LSB style header" to init scripts

Nick Andrew nick at nick-andrew.net
Sun Jun 22 14:44:17 UTC 2008


This is a new requirement for init scripts; it will eventually allow
debian to run boot scripts in parallel. For more information, see
http://wiki.debian.org/LSBInitScripts/

Signed-off-by: Nick Andrew <nick at nick-andrew.net>
---

 server/debian/mogilefsd.init |    9 +++++++++
 server/debian/mogstored.init |    9 +++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/server/debian/mogilefsd.init b/server/debian/mogilefsd.init
index 1cc39c9..e007f43 100755
--- a/server/debian/mogilefsd.init
+++ b/server/debian/mogilefsd.init
@@ -1,4 +1,13 @@
 #! /bin/sh
+### BEGIN INIT INFO
+# Provides:          mogilefsd
+# Required-Start:    $local_fs $remote_fs $network $syslog
+# Required-Stop:     $local_fs $remote_fs $network $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start/Stop the mogilefsd daemon
+# Description:       Start/Stop the mogilefsd daemon.
+### END INIT INFO
 #
 # skeleton	example file to build /etc/init.d/ scripts.
 #		This file should be used to construct scripts for /etc/init.d.
diff --git a/server/debian/mogstored.init b/server/debian/mogstored.init
index 4a5fa0b..f36fc63 100755
--- a/server/debian/mogstored.init
+++ b/server/debian/mogstored.init
@@ -1,4 +1,13 @@
 #! /bin/sh
+### BEGIN INIT INFO
+# Provides:          mogstored
+# Required-Start:    $local_fs $remote_fs $network $syslog
+# Required-Stop:     $local_fs $remote_fs $network $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start/Stop the mogstored daemon
+# Description:       Start/Stop the mogstored daemon.
+### END INIT INFO
 #
 # skeleton	example file to build /etc/init.d/ scripts.
 #		This file should be used to construct scripts for /etc/init.d.



More information about the mogilefs mailing list