/[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 208 by torben, Sun Dec 21 18:41:08 2008 UTC revision 592 by torben, Fri Feb 19 08:47:31 2010 UTC
# Line 1  Line 1 
1  #! /bin/bash  #! /bin/bash
2    
3  PIDFILE="/var/run/smsdaemon.pid"  PIDFILE="/var/run/smsdaemon.pid"
4    chmod 666 /dev/ttyUSB0
5    
6    
7  function start_d  function start_d
8  {  {
9          /usr/local/sbin/smsdaemon --daemon          /usr/local/bin/smsdaemon --daemon
10  }  }
11    
12  function stop_d  function stop_d
# Line 56  case $1 in Line 58  case $1 in
58          "reload")          "reload")
59                  reload_d                  reload_d
60                  ;;                  ;;
61            "restart")
62                    stop_d
63                    sleep 5
64                    start_d
65                    ;;
66          *)          *)
67                  echo "Usage $0 [start|stop|status|reload]"                  echo "Usage $0 [start|stop|status|reload|restart]"
68                  ;;                  ;;
69  esac  esac

Legend:
Removed from v.208  
changed lines
  Added in v.592

  ViewVC Help
Powered by ViewVC 1.1.20