Use systemd path for dnat-to-ns

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-05-12 03:38:58 -07:00
parent c828eaea34
commit 3f4df9dc25
No known key found for this signature in database
GPG key ID: 555C902A34EC968F
3 changed files with 23 additions and 3 deletions

View file

@ -0,0 +1,9 @@
[Unit]
Description=Run /usr/lib/qubes/qubes-setup-dnat-to-ns when /etc/resolv.conf changes
[Path]
PathChanged=/etc/resolv.conf
Unit=dns-to-ns.service
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,6 @@
[Unit]
Description=Run /usr/lib/qubes/qubes-setup-dnat-to-ns
[Service]
Type=oneshot
ExecStart=/usr/lib/qubes/qubes-setup-dnat-to-ns