# Support for ifupdown script.
# Don't bother to restart when lo is configured.
if [ "$IFACE" != "$ISCSI_INTERFACE" ] && [ -n "$IFACE" ]; then
echo "Not restarting ISCSI daemon... (check the value of ISCSI_INTERFACE)"
exit 0
fi
Which means that I restart iscsi when the explicitely interface is set, but you are still able to restart the iscsi daemon while you invoke the script.
Actually, I've slighly updated it :
# Support for ifupdown script.
# Don't bother to restart when lo is configured.
if [ "$IFACE" != "$ISCSI_INTERFACE" ] && [ -n "$IFACE" ]; then
echo "Not restarting ISCSI daemon... (check the value of ISCSI_INTERFACE)"
exit 0
fi
Which means that I restart iscsi when the explicitely interface is set, but you are still able to restart the iscsi daemon while you invoke the script.