Fixed logger flags not gotten from subprocesses
This commit is contained in:
parent
1ba222ba89
commit
fbc6b5d3c2
|
@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
|
||||||
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=1.1.5
|
PROGRAM_VERSION=1.1.5
|
||||||
PROGRAM_BUILD=2016111501
|
PROGRAM_BUILD=2016111502
|
||||||
IS_STABLE=yes
|
IS_STABLE=yes
|
||||||
|
|
||||||
source "./ofunctions.sh"
|
source "./ofunctions.sh"
|
||||||
|
@ -30,6 +30,14 @@ function TrapStop {
|
||||||
function TrapQuit {
|
function TrapQuit {
|
||||||
local exitcode=
|
local exitcode=
|
||||||
|
|
||||||
|
# Get ERROR / WARN alert flags from subprocesses that call Logger
|
||||||
|
if [ -f "$RUN_DIR/$PROGRAM.Logger.warn.$SCRIPT_PID" ]; then
|
||||||
|
WARN_ALERT=1
|
||||||
|
fi
|
||||||
|
if [ -f "$RUN_DIR/$PROGRAM.Logger.error.$SCRIPT_PID" ]; then
|
||||||
|
ERROR_ALERT=1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $ERROR_ALERT -ne 0 ]; then
|
if [ $ERROR_ALERT -ne 0 ]; then
|
||||||
UnlockReplicas
|
UnlockReplicas
|
||||||
if [ "$_DEBUG" != "yes" ]
|
if [ "$_DEBUG" != "yes" ]
|
||||||
|
|
Loading…
Reference in New Issue