From f35d5841c2d718fa8e0f772d8b1c658698f4dcb3 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 2 Oct 2018 18:09:12 +0200 Subject: [PATCH] Added cleanup routine --- dev/common_batch.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/common_batch.sh b/dev/common_batch.sh index a7fea8e..508c8ac 100755 --- a/dev/common_batch.sh +++ b/dev/common_batch.sh @@ -3,7 +3,7 @@ SUBPROGRAM=[prgname] PROGRAM="$SUBPROGRAM-batch" # Batch program to run osync / obackup instances sequentially and rerun failed ones AUTHOR="(L) 2013-2018 by Orsiris de Jong" CONTACT="http://www.netpower.fr - ozy@netpower.fr" -PROGRAM_BUILD=2018100101 +PROGRAM_BUILD=2018100201 ## Runs an osync /obackup instance for every conf file found ## If an instance fails, run it again if time permits @@ -35,6 +35,8 @@ else RUN_DIR=. fi +trap TrapQuit TERM EXIT HUP QUIT + # No need to edit under this line ############################################################## include #### Logger SUBSET ####