Set tgtd not auto-start on OS boot time.
Tgtd starts after OS boots up automatically, listens on the port 3260, which cause lio fails to bind the same port later. This patch removes the auto-start script of tgtd. In IPA service, lio or tgtd would be used to create iscsi target. If tgtd be chosen, IPA will start tgtd before iscsi setting. IF lio be chosen, tgtd would keep not running. Change-Id: Ic62055ac2f9252df832739631bfcbabfac0f9c4e Closes-Bug: #1554987
This commit is contained in:
parent
81633f69c8
commit
fd7ccf97ee
@ -15,6 +15,9 @@ case "$DIB_INIT_SYSTEM" in
|
|||||||
if [ -f /etc/init/ufw.conf ]; then
|
if [ -f /etc/init/ufw.conf ]; then
|
||||||
mv /etc/init/ufw.conf /etc/init/ufw.conf.disabled
|
mv /etc/init/ufw.conf /etc/init/ufw.conf.disabled
|
||||||
fi
|
fi
|
||||||
|
if [ -f /etc/init/tgt.conf ]; then
|
||||||
|
mv /etc/init/tgt.conf /etc/init/tgt.conf.disabled
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
systemd)
|
systemd)
|
||||||
systemctl disable iptables.service
|
systemctl disable iptables.service
|
||||||
|
Loading…
Reference in New Issue
Block a user