mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
systemd/yggdrasil: add mullvad-exclude (& fix chrony override typo)
This commit is contained in:
parent
36b6a99e85
commit
b20f3367b1
@ -8,7 +8,7 @@ After=network.target mullvad-daemon.service
|
|||||||
[Service]
|
[Service]
|
||||||
# Wait a minute before actually starting Chrony so Mullvad has surely had
|
# 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
|
# time to start and thus not fail at excluding (cannot set the cgroup, no
|
||||||
# such file or directory
|
# such file or directory)
|
||||||
ExecStartPre=/usr/bin/sleep 60
|
ExecStartPre=/usr/bin/sleep 60
|
||||||
# Empty the main chrony.service ExecStart line so it can be overwritten
|
# Empty the main chrony.service ExecStart line so it can be overwritten
|
||||||
ExecStart=
|
ExecStart=
|
||||||
|
15
etc/systemd/system/yggdrasil.service.d/mullvad-exclude.conf
Normal file
15
etc/systemd/system/yggdrasil.service.d/mullvad-exclude.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Split-tunneling Yggdrasil 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 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
|
||||||
|
# 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
|
Loading…
Reference in New Issue
Block a user