From a8c387c169ce3a6ab4290f21edff1317338a11d6 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Thu, 19 Oct 2017 16:23:30 +0300 Subject: [PATCH] Make sure monkey mongo starts before monkey island --- monkey_island/deb-package/DEBIAN/postinst | 4 ++-- monkey_island/linux/ubuntu/systemd/monkey-island.service | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/monkey_island/deb-package/DEBIAN/postinst b/monkey_island/deb-package/DEBIAN/postinst index 372718b87..42b8f1eb0 100644 --- a/monkey_island/deb-package/DEBIAN/postinst +++ b/monkey_island/deb-package/DEBIAN/postinst @@ -22,8 +22,8 @@ if [ -d "/etc/systemd/network" ]; then cp ${MONKEY_FOLDER}/ubuntu/systemd/*.service /lib/systemd/system/ chmod +x ${MONKEY_FOLDER}/ubuntu/systemd/start_server.sh systemctl daemon-reload - systemctl enable monkey-mongo - systemctl enable monkey-island + systemctl enable monkey-mongo + systemctl enable monkey-island fi ${MONKEY_FOLDER}/create_certificate.sh diff --git a/monkey_island/linux/ubuntu/systemd/monkey-island.service b/monkey_island/linux/ubuntu/systemd/monkey-island.service index fe43875ac..8868dc3aa 100644 --- a/monkey_island/linux/ubuntu/systemd/monkey-island.service +++ b/monkey_island/linux/ubuntu/systemd/monkey-island.service @@ -1,5 +1,6 @@ [Unit] Description=Monkey Island Service +Wants=monkey-mongo.service After=network.target [Service]