Skip to content

Commit e248364

Browse files
authored
Merge pull request #995 from github/djdefi-crontime
Set a 2 minute timeout on starting cron
2 parents c6b6ba2 + 2c1d772 commit e248364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/ghe-restore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ done
8989
start_cron () {
9090
echo "Starting cron ..."
9191
if $CLUSTER; then
92-
if ! ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo service cron start"; then
92+
if ! ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo timeout 120s service cron start"; then
9393
echo "* Warning: Failed to start cron on one or more nodes"
9494
fi
9595
else
96-
if ! ghe-ssh "$GHE_HOSTNAME" -- "sudo service cron start"; then
96+
if ! ghe-ssh "$GHE_HOSTNAME" -- "sudo timeout 120s service cron start"; then
9797
echo "* Warning: Failed to start cron"
9898
fi
9999
fi

0 commit comments

Comments
 (0)