Use systemd path for dnat-to-ns
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
9
etc/systemd/system/dnat-to-ns.path
Normal file
9
etc/systemd/system/dnat-to-ns.path
Normal 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
|
6
etc/systemd/system/dnat-to-ns.service
Normal file
6
etc/systemd/system/dnat-to-ns.service
Normal 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
|
Reference in New Issue
Block a user