mirror of
https://github.com/vmstan/gravity-sync.git
synced 2025-05-24 00:02:22 -04:00
4.0.0(2)
This commit is contained in:
parent
bc635e14e9
commit
f9a0179e62
@ -1948,7 +1948,7 @@ function task_automate {
|
|||||||
sudo sed -i "/RandomizedDelaySec=5m/c\RandomizedDelaySec=${RANDOM_REP}m" ${GS_LOCAL_REPO}/templates/gravity-sync.timer
|
sudo sed -i "/RandomizedDelaySec=5m/c\RandomizedDelaySec=${RANDOM_REP}m" ${GS_LOCAL_REPO}/templates/gravity-sync.timer
|
||||||
error_validate
|
error_validate
|
||||||
|
|
||||||
if systemctl is-active --quiet gravity-sync; then
|
if systemctl is-active --quiet gravity-sync.timer; then
|
||||||
MESSAGE="Stopping existing systemd service"
|
MESSAGE="Stopping existing systemd service"
|
||||||
sudo systemctl stop gravity-sync
|
sudo systemctl stop gravity-sync
|
||||||
error_validate
|
error_validate
|
||||||
@ -1998,12 +1998,11 @@ function task_monitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function kill_automation_service {
|
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"
|
MESSAGE="Stopping ${PROGRAM} timer"
|
||||||
echo_stat
|
echo_stat
|
||||||
sudo systemctl stop gravity-sync
|
sudo systemctl stop gravity-sync
|
||||||
error_validate
|
error_validate
|
||||||
fi
|
|
||||||
|
|
||||||
MESSAGE="Disabling ${PROGRAM} automation service"
|
MESSAGE="Disabling ${PROGRAM} automation service"
|
||||||
echo_stat
|
echo_stat
|
||||||
@ -2024,6 +2023,7 @@ function kill_automation_service {
|
|||||||
echo_stat
|
echo_stat
|
||||||
sudo systemctl daemon-reload --quiet
|
sudo systemctl daemon-reload --quiet
|
||||||
error_validate
|
error_validate
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## Purge Task
|
## Purge Task
|
||||||
|
@ -369,7 +369,7 @@ function remove_old_version {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function kill_automation_service {
|
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"
|
MESSAGE="Stopping ${PROGRAM} timer"
|
||||||
echo_stat
|
echo_stat
|
||||||
sudo systemctl stop gravity-sync
|
sudo systemctl stop gravity-sync
|
||||||
|
Loading…
x
Reference in New Issue
Block a user