Accepting request 313854 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/313854 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tgt?expand=0&rev=28
This commit is contained in:
commit
6a5b19691a
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 26 06:14:44 UTC 2015 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- fix tgtd start by giving tgtd time to open the socket (bnc#934642)
|
||||||
|
and use bash to run multiple programs in ExecStartPost
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 2 19:34:55 CEST 2014 - mls@suse.de
|
Tue Sep 2 19:34:55 CEST 2014 - mls@suse.de
|
||||||
|
|
||||||
|
4
tgt.spec
4
tgt.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package tgt
|
# spec file for package tgt
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -70,7 +70,7 @@ Authors:
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%{__make} DESTDIR=%{buildroot} docdir=%_docdir/%{name} install
|
%{__make} DESTDIR=%{buildroot} docdir=%_docdir/%{name} install
|
||||||
install -vD -m 755 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service
|
install -vD -m 644 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service
|
||||||
install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt
|
install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt
|
||||||
ln -sf service %{buildroot}/usr/sbin/rc%{name}
|
ln -sf service %{buildroot}/usr/sbin/rc%{name}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ After=network.target
|
|||||||
Type=forking
|
Type=forking
|
||||||
User=root
|
User=root
|
||||||
ExecStart=/usr/sbin/tgtd
|
ExecStart=/usr/sbin/tgtd
|
||||||
ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v offline ; /usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; /usr/sbin/tgtadm --op update --mode sys --name State -v ready
|
ExecStartPost=/bin/bash -c "sleep 0.5 ; /usr/sbin/tgtadm --op update --mode sys --name State -v offline ; /usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; /usr/sbin/tgtadm --op update --mode sys --name State -v ready"
|
||||||
ExecStopPre=/usr/sbin/tgt-admin --update ALL -c /dev/null
|
ExecStopPre=/usr/sbin/tgt-admin --update ALL -c /dev/null
|
||||||
ExecStop=-/usr/sbin/tgtadm --op delete --mode system
|
ExecStop=-/usr/sbin/tgtadm --op delete --mode system
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user