From 2a867bfe8542fb32bc19955d563d16b3e60becff Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 21 Jul 2023 15:21:24 +0200 Subject: [PATCH] wip #6145 @0.25 --- .idea/workspace.xml | 15 ++++++++++++--- backup | 5 ++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index bf606a1..3909b46 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,7 @@ - + diff --git a/backup b/backup index 2c5d103..819b694 100755 --- a/backup +++ b/backup @@ -1,5 +1,8 @@ #!/bin/sh -killall -9 /usr/bin/rsync +if pgrep -x "$SERVICE" >/dev/null +then + exit 0 +fi gzip /var/log/*.log name=`cat /etc/backup-hostname` d=$(date +%Y%m%d%H%i) -- 2.39.5