Skip to content

Commit 91986af

Browse files
authored
reverting changes to redis restart mechanism
Some problems are being caused on cluster binary backup, need to revert until other fixes are in.
1 parent 2591f7a commit 91986af

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

bin/ghe-restore

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -636,24 +636,6 @@ echo "sudo restart -q memcached 2>/dev/null || true" |
636636
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh
637637
bm_end "$(basename $0) - Restarting memcached"
638638

639-
# Restart redis before updating keys
640-
# It's possible that redis hcl is not rendered on an unconfigured system
641-
# so check first
642-
if $instance_configured; then
643-
log_info "Getting redis status before restart..." 1>&3
644-
echo "nomad status redis" |
645-
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh 1>&3
646-
log_info "Restarting redis" 1>&3
647-
echo "nomad stop redis" |
648-
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh 1>&3 2>&3
649-
ghe-ssh "$GHE_HOSTNAME" -- "/usr/local/share/enterprise/ghe-nomad-jobs queue /etc/nomad-jobs/redis/redis.hcl" 1>&3 2>&3
650-
if [ "$?" -gt 0 ]; then
651-
log_error "Unable to restart redis"
652-
fi
653-
log_info "Getting redis status after restart..." 1>&3
654-
echo "nomad status redis" |
655-
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh 1>&3
656-
fi
657639

658640
# Prevent GitHub Connect jobs running before we've had a chance to reset
659641
# the configuration by setting the last run date to now.

0 commit comments

Comments
 (0)