Move the -u parameter from bot.sh to bot.py (Icinga needs)

This commit is contained in:
Christian P. MOMON 2016-10-15 13:26:05 +02:00 committed by root
parent fad2d01ca9
commit 0477fe4358
2 changed files with 2 additions and 2 deletions

2
bot.py
View File

@ -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
View File

@ -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" &