diff --git a/setup/start.sh b/setup/start.sh index 7bcb32511..95c8e905f 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -106,6 +106,7 @@ unbound-anchor -a /var/lib/unbound/root.key log "Adding systemd services" cp -r "${script_dir}/start/systemd/." /etc/systemd/system/ [[ "${ubuntu_version}" == "16.04" ]] && sed -e 's/MemoryMax/MemoryLimit/g' -i /etc/systemd/system/box.service +[[ "${ubuntu_version}" == "16.04" ]] && sed -e 's/Type=notify/Type=simple/g' -i /etc/systemd/system/unbound.service systemctl daemon-reload systemctl enable --now cloudron-syslog systemctl enable unbound diff --git a/setup/start/systemd/unbound.service b/setup/start/systemd/unbound.service index db5147e0a..ddc647a3c 100644 --- a/setup/start/systemd/unbound.service +++ b/setup/start/systemd/unbound.service @@ -11,6 +11,7 @@ PIDFile=/run/unbound.pid ExecStart=/usr/sbin/unbound -d ExecReload=/bin/kill -HUP $MAINPID Restart=always +# On ubuntu 16, this doesn't work for some reason Type=notify [Install]