scripts/runbot
changeset 31 bbcb8a3366b4
parent 27 4a2f7a1492ab
child 33 56571d34d754
equal deleted inserted replaced
30:eed9f710ba3b 31:bbcb8a3366b4
     8 # Default-Stop:      0 1 6
     8 # Default-Stop:      0 1 6
     9 # Short-Description: IRC BOT mcbot 
     9 # Short-Description: IRC BOT mcbot 
    10 # Description:       IRC BOT mcbot
    10 # Description:       IRC BOT mcbot
    11 ### END INIT INFO
    11 ### END INIT INFO
    12 
    12 
    13 RUNAS="nobody"
    13 RUNAS="mcbot"
    14 BINARY="mcbot"
    14 BINARY="mcbot"
    15 DIRECTORY="/usr/sbin/"
    15 DIRECTORY="/usr/sbin/"
    16 LANGUAGE="de_DE.UTF-8"
    16 LANGUAGE="de_DE.UTF-8"
    17 PARAMETER=""
    17 PARAMETER=""
    18 LOGFILE="/var/lib/nobody/mcbot-`date \"+%d-%m-%y\"`.log"
    18 LOGFILE="/var/lib/mcbot/mcbot-`date \"+%d-%m-%y\"`.log"
    19 
    19 
    20 [[ ! -x "${DIRECTORY}/${BINARY}" ]] && exit 0
    20 [[ ! -x "${DIRECTORY}/${BINARY}" ]] && exit 0
    21 
    21 
    22 start() {
    22 start() {
    23 	echo -n " * Starting ${BINARY}"
    23 	echo -n " * Starting ${BINARY}"