Changeset 3324

Show
Ignore:
Timestamp:
01/02/10 11:44:24 (10 years ago)
Author:
zackrb
Message:

Changed the linux and mac stop_seattle.sh script to confirm that nmmain.py and softwareupdater.py have been stopped before reporting to the user that they have been stopped. See ticket #659

Location:
seattle/trunk/dist
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/dist/linux/scripts/stop_seattle.sh

    r3322 r3324  
    44 
    55python stop_all_seattle_processes.py 
    6 echo "seattle has been stopped." 
     6 
     7 
     8# Check to confirm that nmmain.py and softwareupdater.py have been killed and 
     9#   echo the status to the user. 
     10# Some systems respond differently to some options passed to 'ps', so we use 
     11#   'ps axww' to create a universal command that will tell us if nmmain.py 
     12#   is currently running. 
     13# 
     14#   'ps axww': 
     15#     'ax': shows all processes 
     16#     'ww': makes sure that the output is not limited by column length. 
     17#      
     18 
     19NMMAIN=`ps axww 2>/dev/null | grep nmmain.py | grep -v grep` 
     20SOFTWAREUPDATER=`ps axww 2>/dev/null | grep softwareupdater.py | grep -v grep` 
     21 
     22 
     23if ! echo "$NMMAIN" | grep nmmain.py > /dev/null 
     24then 
     25    if ! echo "$SOFTWAREUPDATER" | grep softwareupdater.py > /dev/null 
     26    then 
     27        echo "seattle has been stopped: $(date)" 
     28    fi 
     29else 
     30    echo "seattle could not be stopped for an unknown reason." 
     31    echo "If you continue to see this error, please contact the seattle" \ 
     32        "development team." 
     33fi 
  • seattle/trunk/dist/mac/scripts/stop_seattle.sh

    r3322 r3324  
    44 
    55python stop_all_seattle_processes.py 
    6 echo "seattle has been stopped." 
     6 
     7 
     8# Check to confirm that nmmain.py and softwareupdater.py have been killed and 
     9#   echo the status to the user. 
     10# Some systems respond differently to some options passed to 'ps', so we use 
     11#   'ps axww' to create a universal command that will tell us if nmmain.py 
     12#   is currently running. 
     13# 
     14#   'ps axww': 
     15#     'ax': shows all processes 
     16#     'ww': makes sure that the output is not limited by column length. 
     17#      
     18 
     19NMMAIN=`ps axww 2>/dev/null | grep nmmain.py | grep -v grep` 
     20SOFTWAREUPDATER=`ps axww 2>/dev/null | grep softwareupdater.py | grep -v grep` 
     21 
     22 
     23if ! echo "$NMMAIN" | grep nmmain.py > /dev/null 
     24then 
     25    if ! echo "$SOFTWAREUPDATER" | grep softwareupdater.py > /dev/null 
     26    then 
     27        echo "seattle has been stopped: $(date)" 
     28    fi 
     29else 
     30    echo "seattle could not be stopped for an unknown reason." 
     31    echo "If you continue to see this error, please contact the seattle" \ 
     32        "development team." 
     33fi