Fix iscsi network check

This adds network to be required. If NM is not used then this
is required. If NM is used then network.service should not be setup
and we are ok.
This commit is contained in:
Mike Christie 2012-02-04 02:58:21 -06:00
parent 1c4f613249
commit ec32d86275

View File

@ -5,16 +5,9 @@
# chkconfig: 345 13 89 # chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup # description: Logs into iSCSI targets needed at system startup
# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: iscsi # Provides: iscsi
# Required-Start: iscsid # Required-Start: iscsid network
# Should-Start: tgtd # Should-Start: tgtd
# Required-Stop: iscsid # Required-Stop: iscsid
# Should-Stop: tgtd # Should-Stop: tgtd