/[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 520 by torben, Sat Dec 26 23:01:01 2009 UTC
# Line 4  PIDFILE="/var/run/smsdaemon.pid" Line 4  PIDFILE="/var/run/smsdaemon.pid"
4    
5  function start_d  function start_d
6  {  {
7          /usr/local/sbin/smsdaemon --daemon          /usr/local/bin/smsdaemon --daemon
8  }  }
9    
10  function stop_d  function stop_d
# 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.520

  ViewVC Help
Powered by ViewVC 1.1.20