summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-hostsd.service
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-06-11 08:04:29 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-06-11 22:10:47 +0200
commitde8f039cf3a527c87ec595fc94a691b0159cd79a (patch)
treeafa934da9c65b2c8204a9ff0c8663b243d3af729 /src/systemd/vyos-hostsd.service
parentdbdd44c8669776efc33131c852a74f457c590aab (diff)
downloadvyos-1x-de8f039cf3a527c87ec595fc94a691b0159cd79a.tar.gz
vyos-1x-de8f039cf3a527c87ec595fc94a691b0159cd79a.zip
vyos-hostsd: T2583: update systemd service
- set RuntimeDirectory to vyos-hostsd - set RuntimeDirectoryPreserve in order to not delete the state file between service restarts (/run will be deleted across reboots as it's on a tmpfs but the state doesn't need to be saved across reboots anyway) - set WorkingDirectory to /run/vyos-hostsd
Diffstat (limited to 'src/systemd/vyos-hostsd.service')
-rw-r--r--src/systemd/vyos-hostsd.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/vyos-hostsd.service b/src/systemd/vyos-hostsd.service
index 731e570c9..db8f630d4 100644
--- a/src/systemd/vyos-hostsd.service
+++ b/src/systemd/vyos-hostsd.service
@@ -10,6 +10,9 @@ DefaultDependencies=no
After=systemd-remount-fs.service
[Service]
+WorkingDirectory=/run/vyos-hostsd
+RuntimeDirectory=vyos-hostsd
+RuntimeDirectoryPreserve=yes
ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-hostsd
Type=idle
KillMode=process