welcomebot/bot.sh

14 lines
264 B
Bash
Raw Normal View History

#!/bin/sh
BINDIR="`dirname "$0"`"
HOMEDIR="`dirname "$BINDIR"`"
echo "BINDIR=$BINDIR"
echo "HOMEDIR=$HOMEDIR"
cd "$BINDIR"
#nohup /srv/welcomebot/git/bot.py >> /dev/null 2>>../welcomebot.log &
2017-08-17 10:26:48 +02:00
nohup "$BINDIR/bot.py" > /dev/null 2>>"$HOMEDIR/welcomebot.log" &