[stgt] [PATCH] Add chkconfig configuration to tgtd service script

Roi Dayan roid at mellanox.com
Sun Mar 3 09:47:25 CET 2013


Signed-off-by: Roi Dayan <roid at mellanox.com>
---
 scripts/initd.sample |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/scripts/initd.sample b/scripts/initd.sample
index 11a4605..9ca86ce 100755
--- a/scripts/initd.sample
+++ b/scripts/initd.sample
@@ -1,7 +1,18 @@
 #!/bin/sh
-
 # This is an example init.d script for stopping/starting/reconfiguring tgtd.
 
+# chkconfig: 345 20 80
+#
+### BEGIN INIT INFO
+# Provides: tgtd
+# Required-Start: $network
+# Required-Stop: $network
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Starts and stops the generic storage target daemon
+# Description: tgtd provides the SCSI and software transport target state machine daemon.
+### END INIT INFO
+
 TGTD_CONFIG=/etc/tgt/targets.conf
 
 TASK=$1
-- 
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list