scripts/runbot
changeset 26 767f79e69de1
parent 0 586472add385
child 27 4a2f7a1492ab
equal deleted inserted replaced
25:a0fad312ea30 26:767f79e69de1
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
       
     3 ### BEGIN INIT INFO
       
     4 # Provides:          mcbot
       
     5 # Required-Start:    $remote_fs $syslog
       
     6 # Required-Stop:     $remote_fs $syslog
       
     7 # Default-Start:     2 3 4 5
       
     8 # Default-Stop:      0 1 6
       
     9 # Short-Description: IRC BOT mcbot 
       
    10 # Description:       IRC BOT mcbot
       
    11 ### END INIT INFO
       
    12 
     3 BINARY="mcbot"
    13 BINARY="mcbot"
     4 DIRECTORY="/usr/local/sbin/"
    14 DIRECTORY="/usr/sbin/"
     5 LANGUAGE="de_DE.UTF-8"
    15 LANGUAGE="de_DE.UTF-8"
     6 
    16 
     7 [[ ! -x "${DIRECTORY}/${BINARY}" ]] && exit 0
    17 [[ ! -x "${DIRECTORY}/${BINARY}" ]] && exit 0
     8 
    18 
     9 start() {
    19 start() {
    46 	restart)
    56 	restart)
    47 		echo "Restarting ${BINARY}"
    57 		echo "Restarting ${BINARY}"
    48 		stop
    58 		stop
    49 		start
    59 		start
    50 	;;
    60 	;;
       
    61 	force-reload)
       
    62 		echo "Force reload stub"
       
    63 		stop
       
    64 		start
       
    65 	;;
       
    66 
    51 	*)
    67 	*)
    52 		echo "Usage: start|stop|restart|status"
    68 		echo "Usage: start|stop|restart|status|force-reload"
    53 	;;
    69 	;;
    54 esac
    70 esac
    55 
    71 
    56 exit 0
    72 exit 0