Enabled log. Added log filter. Set relative path detection.
This commit is contained in:
parent
01a5963fad
commit
f0ced9cb1f
15
bot.sh
Executable file
15
bot.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/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 &
|
||||||
|
|
||||||
|
nohup python -u "$BINDIR/bot.py" 2>&1 | grep -v "^$" >> "$HOMEDIR/welcomebot.log" &
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user