diff --git a/etc/systemd/system/chrony.service.d/mullvad-exclude.conf b/etc/systemd/system/chrony.service.d/mullvad-exclude.conf index 9f8d6792..614442ea 100644 --- a/etc/systemd/system/chrony.service.d/mullvad-exclude.conf +++ b/etc/systemd/system/chrony.service.d/mullvad-exclude.conf @@ -2,7 +2,7 @@ [Unit] # Don't start until mullvad-daemon is online to allow excluding -Wants=mullvad-daemon.service +Requires=mullvad-daemon.service After=network.target mullvad-daemon.service [Service] diff --git a/etc/systemd/system/i2pd.service.d/mullvad-exclude.conf b/etc/systemd/system/i2pd.service.d/mullvad-exclude.conf index c68438ae..e162de02 100644 --- a/etc/systemd/system/i2pd.service.d/mullvad-exclude.conf +++ b/etc/systemd/system/i2pd.service.d/mullvad-exclude.conf @@ -1,5 +1,10 @@ # https://i2pd.readthedocs.io/en/latest/tutorials/yggdrasil-only-mode/ # and letting it through Mullvad this way +[Unit] +Requires=mullvad-daemon.service +After=mullvad-daemon.service + +[Service] ExecStartPre=/usr/bin/sleep 30 ExecStart= ExecStart=/usr/bin/mullvad-exclude /usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf --tunnelsdir=/etc/i2pd/tunnels.conf.d --pidfile=/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service diff --git a/etc/systemd/system/yggdrasil.service.d/mullvad-exclude.conf b/etc/systemd/system/yggdrasil.service.d/mullvad-exclude.conf index 290df947..246950e7 100644 --- a/etc/systemd/system/yggdrasil.service.d/mullvad-exclude.conf +++ b/etc/systemd/system/yggdrasil.service.d/mullvad-exclude.conf @@ -2,7 +2,7 @@ [Unit] # Don't start until mullvad-daemon is online to allow excluding -Wants=mullvad-daemon.service +Requires=mullvad-daemon.service After=network.target mullvad-daemon.service [Service]