Merge pull request #64 from guardicore/hotfix/deb-service-autostart
Hotfix/deb service autostart
This commit is contained in:
commit
aab7c00c2c
|
@ -22,6 +22,8 @@ if [ -d "/etc/systemd/network" ]; then
|
||||||
cp ${MONKEY_FOLDER}/ubuntu/systemd/*.service /lib/systemd/system/
|
cp ${MONKEY_FOLDER}/ubuntu/systemd/*.service /lib/systemd/system/
|
||||||
chmod +x ${MONKEY_FOLDER}/ubuntu/systemd/start_server.sh
|
chmod +x ${MONKEY_FOLDER}/ubuntu/systemd/start_server.sh
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
systemctl enable monkey-mongo
|
||||||
|
systemctl enable monkey-island
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${MONKEY_FOLDER}/create_certificate.sh
|
${MONKEY_FOLDER}/create_certificate.sh
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Monkey Island Service
|
Description=Monkey Island Service
|
||||||
|
Wants=monkey-mongo.service
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
Loading…
Reference in New Issue