From f9a0179e625507f042784238a53f31d8d45f0fc9 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Tue, 12 Apr 2022 08:05:35 -0500 Subject: [PATCH] 4.0.0(2) --- gravity-sync | 6 +++--- gravity-sync.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gravity-sync b/gravity-sync index 9811fca..930011f 100755 --- a/gravity-sync +++ b/gravity-sync @@ -1948,7 +1948,7 @@ function task_automate { sudo sed -i "/RandomizedDelaySec=5m/c\RandomizedDelaySec=${RANDOM_REP}m" ${GS_LOCAL_REPO}/templates/gravity-sync.timer error_validate - if systemctl is-active --quiet gravity-sync; then + if systemctl is-active --quiet gravity-sync.timer; then MESSAGE="Stopping existing systemd service" sudo systemctl stop gravity-sync error_validate @@ -1998,12 +1998,11 @@ function task_monitor { } function kill_automation_service { - if systemctl is-active --quiet gravity-sync; then + if systemctl is-active --quiet gravity-sync.timer; then MESSAGE="Stopping ${PROGRAM} timer" echo_stat sudo systemctl stop gravity-sync error_validate - fi MESSAGE="Disabling ${PROGRAM} automation service" echo_stat @@ -2024,6 +2023,7 @@ function kill_automation_service { echo_stat sudo systemctl daemon-reload --quiet error_validate + fi } ## Purge Task diff --git a/gravity-sync.sh b/gravity-sync.sh index 467a177..77f2bd0 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -369,7 +369,7 @@ function remove_old_version { } function kill_automation_service { - if systemctl is-active --quiet gravity-sync; then + if systemctl is-active --quiet gravity-sync.timer; then MESSAGE="Stopping ${PROGRAM} timer" echo_stat sudo systemctl stop gravity-sync