shell-things/etc/systemd/system/chrony.service.d/mullvad-exclude.conf

16 lines
568 B
Plaintext
Raw Normal View History

# Split-tunneling Chrony outside of Mullvad VPN (won't work without it)
[Unit]
# Don't start until mullvad-daemon is online to allow excluding
Requires=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)
2024-10-04 12:21:21 +02:00
#ExecStartPre=sleep 60
# Empty the main chrony.service ExecStart line so it can be overwritten
ExecStart=
2024-10-04 12:21:21 +02:00
ExecStart=mullvad-exclude /usr/sbin/chronyd $DAEMON_OPTS