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

april-welcomebot
Christian P. MOMON 6 years ago committed by root
parent fad2d01ca9
commit 0477fe4358
  1. 2
      bot.py
  2. 2
      bot.sh

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python -u
# -*- 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/

@ -10,6 +10,6 @@ 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" &
nohup "$BINDIR/bot.py" 2>&1 | grep -v "^$" >> "$HOMEDIR/welcomebot.log" &

Loading…
Cancel
Save