Skip to content

Commit b39d799

Browse files
committed
some troubleshooting output
1 parent 9edb995 commit b39d799

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/ghe-restore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ if $CLUSTER; then
392392
if ! ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo service cron stop"; then
393393
log_warn "Failed to stop cron on one or more nodes" 1>&3
394394
fi
395-
395+
bm_end "$(basename $0) - Stopping cron and github-timerd on cluster"
396396
if [ "$GHE_VERSION_MAJOR" -eq "3" ]; then
397397
if ghe-ssh "$GHE_HOSTNAME" -- "systemctl -q is-active nomad && nomad job status --short github-timerd &>/dev/null"; then
398398
if ! ghe-ssh "$GHE_HOSTNAME" -- "sudo nomad stop github-timerd 1>/dev/null"; then
@@ -404,14 +404,14 @@ if $CLUSTER; then
404404
log_warn "Failed to stop github-timerd on one or more nodes" 1>&3
405405
fi
406406
fi
407-
bm_end "$(basename $0) - Stopping cron and github-timerd on cluster"
407+
408408
else
409409
bm_start "$(basename $0) - Stopping cron and github-timerd"
410410
echo "$(basename $0) - Stopping cron and github-timerd"
411411
if ! ghe-ssh "$GHE_HOSTNAME" -- "sudo service cron stop"; then
412412
log_warn "Failed to stop cron" 1>&3
413413
fi
414-
414+
bm_end "$(basename $0) - Stopping cron and github-timerd"
415415
if [ "$GHE_VERSION_MAJOR" -eq "3" ]; then
416416
if ghe-ssh "$GHE_HOSTNAME" -- "systemctl -q is-active nomad && nomad job status --short github-timerd &>/dev/null"; then
417417
if ! ghe-ssh "$GHE_HOSTNAME" -- "sudo nomad stop github-timerd 1>/dev/null"; then
@@ -423,7 +423,7 @@ else
423423
log_warn "Failed to stop github-timerd" 1>&3
424424
fi
425425
fi
426-
bm_end "$(basename $0) - Stopping cron and github-timerd on"
426+
427427
fi
428428
CRON_RUNNING=false
429429

0 commit comments

Comments
 (0)