summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/tgt/files/tgtd.init
Commit message (Collapse)AuthorAgeFilesLines
* tgt: Use return instead of exit to restart tgtd, if tgtd is not runningJagadeesh Krishnanjanappa2018-07-101-2/+2
| | | | | | | | | If the tgtd daemon is stopped, then '/etc/init.d/tgtd.init restart' does not start the new tgtd daemon, as the control comes out from the stop function, if it finds tgtd is not running. Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* tgt: specify -f option in order to load backing store device when tgtd is ↵Jagadeesh Krishnanjanappa2018-06-031-1/+1
| | | | | | | | | | | restarted Specifying force option (-f) to tgt-admin, makes sure iscsi backing devices mentioned under /etc/tgt/*.conf are listed, loaded and activated when /etc/init.d/tgtd is restarted. Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* tgt: prevent service from being started multiple timesKeith Holman2014-05-261-0/+9
| | | | | | | | | | Using the /etc/init.d/tgtd script, allows the service be started multiple times, but only the last instance can be stopped using the script. This fix ensures that the service isn't running before attempting to start the service multiple times. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* tgtd init script needs to update its usage infoAmy Fong2014-03-261-1/+1
| | | | | | | tgtd implements status and reload, need to add this to the usage info Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* OpenStack: Add to missing functionality in sysvinit scriptsAmy Fong2014-03-171-25/+61
| | | | | | | | | Add status/reload to sysvinit scripts Modify tgtd to make start/stop work better (borrowed from Debian's implementation) Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* initscrtips: make initscripts chkconfig and service safeBruce Ashfield2013-11-251-0/+10
| | | | | | | | 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>
* tgt: added 1.0.36Mihai Prica2013-08-281-0/+61
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>