mirror of
https://github.com/tommytran732/QubesOS-Scripts.git
synced 2025-07-23 05:40:34 -04:00
Use systemd path for dnat-to-ns
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
c828eaea34
commit
3f4df9dc25
3 changed files with 23 additions and 3 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue