Move the -u parameter from bot.sh to bot.py (Icinga needs)
This commit is contained in:
parent
fad2d01ca9
commit
0477fe4358
2
bot.py
2
bot.py
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python -u
|
||||||
# -*- coding: utf-8 -1 -*-
|
# -*- coding: utf-8 -1 -*-
|
||||||
|
|
||||||
# Welcome to WelcomeBot. Find source, documentation, etc here: https://github.com/shaunagm/WelcomeBot/ Licensed https://creativecommons.org/licenses/by-sa/2.0/
|
# Welcome to WelcomeBot. Find source, documentation, etc here: https://github.com/shaunagm/WelcomeBot/ Licensed https://creativecommons.org/licenses/by-sa/2.0/
|
||||||
|
2
bot.sh
2
bot.sh
@ -10,6 +10,6 @@ cd "$BINDIR"
|
|||||||
|
|
||||||
#nohup /srv/welcomebot/git/bot.py >> /dev/null 2>>../welcomebot.log &
|
#nohup /srv/welcomebot/git/bot.py >> /dev/null 2>>../welcomebot.log &
|
||||||
|
|
||||||
nohup python -u "$BINDIR/bot.py" 2>&1 | grep -v "^$" >> "$HOMEDIR/welcomebot.log" &
|
nohup "$BINDIR/bot.py" 2>&1 | grep -v "^$" >> "$HOMEDIR/welcomebot.log" &
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user