From 61dc3706ab87a107aaec8b83ed0ef5d1f19b5ecb Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 26 Apr 2024 17:43:37 +0300 Subject: [PATCH] systemd/{chrony,i2pd,yggdrasil}.service.d/mullvad-exclude.conf: fix mistakes and Requires= --- etc/systemd/system/chrony.service.d/mullvad-exclude.conf | 2 +- etc/systemd/system/i2pd.service.d/mullvad-exclude.conf | 5 +++++ etc/systemd/system/yggdrasil.service.d/mullvad-exclude.conf | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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]