2016-10-15 03:43:07 +02:00
|
|
|
#!/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 &
|
|
|
|
|
2016-10-15 13:26:05 +02:00
|
|
|
nohup "$BINDIR/bot.py" 2>&1 | grep -v "^$" >> "$HOMEDIR/welcomebot.log" &
|
2016-10-15 03:43:07 +02:00
|
|
|
|
|
|
|
|