[PATCH] Add chkconfig configuration to tgtd service script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Roi Dayan <roid@xxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux