summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/tgt/files/tgtd.init
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-11-18 14:04:46 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-11-25 15:25:38 -0500
commit7b5bba81e957c4107c02f71b0d41b0a3f035385f (patch)
tree0b60ae162a92ce78b2df2b8789131af9444cf5ce /meta-openstack/recipes-support/tgt/files/tgtd.init
parentb2cf21f9bacceace8abe3f80256e3a9cd141c5ae (diff)
downloadmeta-cloud-services-7b5bba81e957c4107c02f71b0d41b0a3f035385f.tar.gz
initscrtips: make initscripts chkconfig and service safe
To support the execution of the chkconfig and service scripts, we need to ensure a consistent header on the initscripts, and a consistent environment that allows scratch files to be written. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-support/tgt/files/tgtd.init')
-rw-r--r--meta-openstack/recipes-support/tgt/files/tgtd.init10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/tgt/files/tgtd.init b/meta-openstack/recipes-support/tgt/files/tgtd.init
index 656a243..3408645 100644
--- a/meta-openstack/recipes-support/tgt/files/tgtd.init
+++ b/meta-openstack/recipes-support/tgt/files/tgtd.init
@@ -1,5 +1,15 @@
1#!/bin/sh 1#!/bin/sh
2 2
3### BEGIN INIT INFO
4# Provides: tgtd
5# Required-Start: $remote_fs $network $syslog
6# Required-Stop: $remote_fs $syslog
7# Default-Start: 3 5
8# Default-Stop: 0 1 2 6
9# Short-Description: SCSI target daemon
10# Description: Linux SCSI target framework (tgt)
11### END INIT INFO
12
3DESC="tgtd" 13DESC="tgtd"
4DAEMON="/usr/sbin/tgtd" 14DAEMON="/usr/sbin/tgtd"
5PIDFILE="/var/run/tgtd.pid" 15PIDFILE="/var/run/tgtd.pid"