systemd: keep retrying yggdrasil, don't sleep

This commit is contained in:
Aminda Suomalainen 2021-10-03 09:58:03 +03:00
parent 12b05ab77a
commit 84e714b55e
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ After=network.target mullvad-daemon.service
# Wait a ~minute before actually starting Yggdrasil so Mullvad has surely had
# time to start and thus not fail at excluding (cannot set the cgroup, no
# such file or directory)
ExecStartPre=/usr/bin/sleep 45
#ExecStartPre=/usr/bin/sleep 45
# Empty the main yggdrasil.service ExecStart line so it can be overwritten
ExecStart=
ExecStart=/usr/bin/mullvad-exclude /usr/bin/yggdrasil -useconffile /etc/yggdrasil.conf

View File

@ -0,0 +1,4 @@
# To never stop retrying to start
[Service]
Restart=always
RestartSec=5s