From 7b5bba81e957c4107c02f71b0d41b0a3f035385f Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 18 Nov 2013 14:04:46 -0500 Subject: 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 --- meta-openstack/recipes-support/tgt/files/tgtd.init | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'meta-openstack/recipes-support/tgt/files') 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 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: tgtd +# Required-Start: $remote_fs $network $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: SCSI target daemon +# Description: Linux SCSI target framework (tgt) +### END INIT INFO + DESC="tgtd" DAEMON="/usr/sbin/tgtd" PIDFILE="/var/run/tgtd.pid" -- cgit v1.2.3-54-g00ecf