check if iscsid is running. if iscsid is not running exit the script. Signed-off-by: Doron Shoham <[EMAIL PROTECTED]>
Signed-off-by: Erez Zilber <[EMAIL PROTECTED]> --- utils/iscsi_discovery | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/utils/iscsi_discovery b/utils/iscsi_discovery index 7c06b92..f9118d0 100755 --- a/utils/iscsi_discovery +++ b/utils/iscsi_discovery @@ -171,6 +171,19 @@ select_transport() fi } +check_iscsid() +{ + #check if iscsid is running + pidof iscsid &>/dev/null + ret=$? + if [ $ret -ne 0 ]; then + echo "iscsid is not running" + echo "Exiting..." + exit 1 + fi +} + +check_iscsid initialize parse_cmdline "$@" discover -- 1.5.3.6 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to open-iscsi@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/open-iscsi -~----------~----~----~----~------~----~------~--~---