/[projects]/smsdaemon/scripts/smsdaemon-initscript
ViewVC logotype

Diff of /smsdaemon/scripts/smsdaemon-initscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 204 by torben, Fri Dec 19 07:33:01 2008 UTC revision 209 by torben, Sun Dec 21 18:57:24 2008 UTC
# Line 37  function status_d Line 37  function status_d
37          fi          fi
38  }  }
39    
40    function reload_d
41    {
42            PID=`cat $PIDFILE`
43            kill -HUP $PID
44    }
45    
46  case $1 in  case $1 in
47          "start")          "start")
48                  start_d                  start_d
# Line 47  case $1 in Line 53  case $1 in
53          "status")          "status")
54                  status_d                  status_d
55                  ;;                  ;;
56            "reload")
57                    reload_d
58                    ;;
59            "restart")
60                    stop_d
61                    sleep 5
62                    start_d
63                    ;;
64          *)          *)
65                  echo "Usage $0 [start|stop|status]"                  echo "Usage $0 [start|stop|status|reload|restart]"
66                  ;;                  ;;
67  esac  esac

Legend:
Removed from v.204  
changed lines
  Added in v.209

  ViewVC Help
Powered by ViewVC 1.1.20