Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Extend restart test 640 to restart docker itself
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Aug 18, 2015
1 parent 9fb9ea6 commit 2f1216b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/640_proxy_restart_reattaches_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ check_attached
# Kill outside of Docker so Docker will restart it
run_on $HOST1 sudo kill -KILL $(docker_on $HOST1 inspect --format='{{.State.Pid}}' c2)
sleep 1
check_attached
# Uncomment once #1209 is fixed
# check_attached

# Restart docker itself
# - disabled since the commands are different between our Vagrant VMs and GCE
#run_on $HOST1 sudo systemctl restart docker # for systemd
#run_on $HOST1 sudo service docker restart # for upstart
#weave_on $HOST1 launch
#check_attached
# Restart docker itself, using different commands for systemd- and upstart-managed.
run_on $HOST1 sh -c "command -v systemctl >/dev/null && sudo systemctl restart docker || sudo service docker restart"
sleep 1
weave_on $HOST1 launch
check_attached

end_suite

0 comments on commit 2f1216b

Please sign in to comment.