From 0477fe4358dde259b1db3f304cf4b5a278a280af Mon Sep 17 00:00:00 2001 From: Christian Pierre MOMON Date: Sat, 15 Oct 2016 13:26:05 +0200 Subject: [PATCH] Move the -u parameter from bot.sh to bot.py (Icinga needs) --- bot.py | 2 +- bot.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index bd256e4..d93ff15 100755 --- a/bot.py +++ b/bot.py @@ -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/ diff --git a/bot.sh b/bot.sh index 3a31b0e..f1eb13d 100755 --- a/bot.sh +++ b/bot.sh @@ -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" &