summaryrefslogtreecommitdiff
path: root/etc/initd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/initd')
-rw-r--r--etc/initd/initd.debian4
-rw-r--r--etc/initd/initd.redhat2
-rw-r--r--etc/initd/initd.suse2
3 files changed, 3 insertions, 5 deletions
diff --git a/etc/initd/initd.debian b/etc/initd/initd.debian
index d6e3d83..9e9f134 100644
--- a/etc/initd/initd.debian
+++ b/etc/initd/initd.debian
@@ -39,15 +39,13 @@ start() {
starttargets() {
log_daemon_msg "Setting up iSCSI targets"
$ADM -m node --loginall=automatic
- done
log_end_msg 0
}
stoptargets() {
log_daemon_msg "Disconnecting iSCSI targets"
sync
- $ADM -m node --logoutall=automatic
- done
+ $ADM -m node --logoutall=all
log_end_msg 0
}
diff --git a/etc/initd/initd.redhat b/etc/initd/initd.redhat
index 0d058c0..c591534 100644
--- a/etc/initd/initd.redhat
+++ b/etc/initd/initd.redhat
@@ -38,7 +38,7 @@ stop()
{
echo -n $"Stopping iSCSI initiator service: "
sync
- iscsiadm -m node --logoutall=automatic
+ iscsiadm -m node --logoutall=all
pkill -KILL iscsid
rm -f /var/run/iscsid.pid
#killproc iscsid
diff --git a/etc/initd/initd.suse b/etc/initd/initd.suse
index afc77f4..4d99992 100644
--- a/etc/initd/initd.suse
+++ b/etc/initd/initd.suse
@@ -36,7 +36,7 @@ iscsi_login_all_nodes()
iscsi_logout_all_nodes()
{
# Logout from all active sessions
- if $ISCSIADM -m node --logoutall=automatic ; then
+ if $ISCSIADM -m node --logoutall=all ; then
rc_status -v
else
RETVAL=$?