Changes between Version 2 and Version 3 of Scripts/runscript


Ignore:
Timestamp:
Jan 26, 2009, 8:42:16 PM (13 years ago)
Author:
Waldorf
Comment:

append eend with $?

Legend:

Unmodified
Added
Removed
Modified
  • Scripts/runscript

    v2 v3  
    152152    do_start
    153153    case "$?" in
    154             0|1) eend "   Starting $DESC $NAME succeeded" ;;
    155             *)   eend "   Starting $DESC $NAME failed" ;;
     154            0|1) eend $? "   Starting $DESC $NAME succeeded" ;;
     155            *)   eend $? "   Starting $DESC $NAME failed" ;;
    156156    esac
    157157    ;;
     
    162162    do_stop
    163163    case "$?" in
    164             0|1) eend "   Stopping $DESC $NAME succeeded" ;;
    165             *)   eend "   Stopping $DESC $NAME failed" ;;
     164            0|1) eend $? "   Stopping $DESC $NAME succeeded" ;;
     165            *)   eend $? "   Stopping $DESC $NAME failed" ;;
    166166    esac
    167167    ;;
     
    175175          do_start
    176176          case "$?" in
    177               0|1) eend "   Restarting $DESC $NAME succeeded" ;;
    178               *)   eend "   Restarting $DESC $NAME failed: couldn't start $NAME" ;;
     177              0|1) eend $? "   Restarting $DESC $NAME succeeded" ;;
     178              *)   eend $? "   Restarting $DESC $NAME failed: couldn't start $NAME" ;;
    179179          esac
    180180          ;;
    181181    *)
    182           eend "   Restarting $DESC $NAME failed: couldn't stop $NAME" ;;
     182          eend $? "   Restarting $DESC $NAME failed: couldn't stop $NAME" ;;
    183183  esac
    184184  ;;