From f94670848ea6682faa5452fb5863c1a4c28d9c14 Mon Sep 17 00:00:00 2001 From: Rick Hansen Date: Mon, 1 May 2017 14:31:45 +1000 Subject: [PATCH] Use unbuffered IO and redirect output to log file --- nginx-ldap-auth-daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx-ldap-auth-daemon.py b/nginx-ldap-auth-daemon.py index 8806183..31626d1 100755 --- a/nginx-ldap-auth-daemon.py +++ b/nginx-ldap-auth-daemon.py @@ -1,6 +1,6 @@ #!/bin/sh -''''which python2 >/dev/null && exec python2 "$0" "$@" # ''' -''''which python >/dev/null && exec python "$0" "$@" # ''' +''''which python2 >/dev/null && exec python2 -u "$0" "$@" &>>$LOG # ''' +''''which python >/dev/null && exec python -u "$0" "$@" &>>$LOG # ''' # Copyright (C) 2014-2015 Nginx, Inc.