From 40d535f2c0f3f96901cd555fdd2dfd954c746f18 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 8 Dec 2020 18:36:34 +0200 Subject: [PATCH] systemd/chrony.service.d/mullvad-exclude: actually fix this --- .../system/chrony.service.d/mullvad-exclude.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/etc/systemd/system/chrony.service.d/mullvad-exclude.conf b/etc/systemd/system/chrony.service.d/mullvad-exclude.conf index ddbfb63a..838bb3c1 100644 --- a/etc/systemd/system/chrony.service.d/mullvad-exclude.conf +++ b/etc/systemd/system/chrony.service.d/mullvad-exclude.conf @@ -1,3 +1,15 @@ +# Split-tunneling Chrony outside of Mullvad VPN (won't work without it) + +[Unit] +# Don't start until mullvad-daemon is online to allow excluding +Wants=mullvad-daemon.service +After=network.target mullvad-daemon.service + [Service] +# Wait a minute before actually starting Chrony 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 60 +# Empty the main chrony.service ExecStart line so it can be overwritten ExecStart= ExecStart=/usr/bin/mullvad-exclude /usr/sbin/chronyd $DAEMON_OPTS