Skip to content

Commit e6409c4

Browse files
authored
Merge pull request #268 from github/revert-266-snh/stop-jobs-during-restore
Revert "Stop cron and timerd during restore"
2 parents 27b74c8 + 2e8b3fd commit e6409c4

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

bin/ghe-restore

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,6 @@ fi
200200
ghe-backup-store-version ||
201201
echo "Warning: storing backup-utils version remotely failed."
202202

203-
# Stop cron and timerd, as scheduled jobs may disrupt the restore process.
204-
if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
205-
if $cluster; then
206-
ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo service cron stop"
207-
ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo service github-timerd stop"
208-
else
209-
ghe-ssh "$GHE_HOSTNAME" -- "sudo service cron stop"
210-
ghe-ssh "$GHE_HOSTNAME" -- "sudo service github-timerd stop"
211-
fi
212-
fi
213-
214203
# Restore settings and license if restoring to an unconfigured appliance or when
215204
# specified manually.
216205
if $restore_settings; then
@@ -334,15 +323,6 @@ elif $instance_configured; then
334323
fi
335324
fi
336325

337-
# Start cron. Timerd will start automatically as part of the config run.
338-
if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
339-
if $cluster; then
340-
ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo service cron start"
341-
else
342-
ghe-ssh "$GHE_HOSTNAME" -- "sudo service cron start"
343-
fi
344-
fi
345-
346326
# Update the remote status to "complete". This has to happen before importing
347327
# ssh host keys because subsequent commands will fail due to the host key
348328
# changing otherwise.

test/bin/service

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)