From 359ac04e37825b24dfdb7511611c26c37e70f985 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Thu, 19 Oct 2017 10:47:28 +0300 Subject: [PATCH] Service created by deb starts automatically --- monkey_island/deb-package/DEBIAN/postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey_island/deb-package/DEBIAN/postinst b/monkey_island/deb-package/DEBIAN/postinst index 3b9ba92ff..372718b87 100644 --- a/monkey_island/deb-package/DEBIAN/postinst +++ b/monkey_island/deb-package/DEBIAN/postinst @@ -22,6 +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 fi ${MONKEY_FOLDER}/create_certificate.sh