Skip to content

Commit 70af02b

Browse files
committed
Debug logging of memcached restart
1 parent bd61d55 commit 70af02b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bin/ghe-restore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ ghe-restore-es-${GHE_BACKUP_STRATEGY} "$GHE_HOSTNAME" 1>&3
209209

210210
# Restart an already running memcached to reset the cache after restore
211211
if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
212-
echo "sudo restart -q memcached 2>&1 || true" | ghe-ssh "$GHE_HOSTNAME"
212+
echo "Restarting memcached ..." 1>&3
213+
echo "sudo restart -q memcached 2>/dev/null || true" |
214+
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh
213215
fi
214216

215217
# When restoring to a host that has already been configured, kick off a

0 commit comments

Comments
 (0)