summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-08-20 18:53:35 +0200
committerDaniil Baturin <daniil@baturin.org>2019-08-20 19:34:03 +0200
commite5df80a3f54da23858c382a8e491ff9901317e1e (patch)
tree685ad5a5771d4914ddc2d0aeb06aa3be7b3c5401 /src/systemd
parent8ec2d46a618bd19f9dfa7ccb08f33dc869e3b5f0 (diff)
downloadvyos-1x-e5df80a3f54da23858c382a8e491ff9901317e1e.tar.gz
vyos-1x-e5df80a3f54da23858c382a8e491ff9901317e1e.zip
T1598: initial implementation of the hosts keeper daemon.
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/vyos-hostsd.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/systemd/vyos-hostsd.service b/src/systemd/vyos-hostsd.service
new file mode 100644
index 000000000..fe6c163d7
--- /dev/null
+++ b/src/systemd/vyos-hostsd.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=VyOS DNS configuration keeper
+After=auditd.service systemd-user-sessions.service time-sync.target
+
+[Service]
+ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-hostsd
+Type=idle
+KillMode=process
+
+SyslogIdentifier=vyos-hostsd
+SyslogFacility=daemon
+
+Restart=on-failure
+
+# Does't work but leave it here
+User=root
+Group=vyattacfg
+
+[Install]
+# Installing in a earlier target leaves ExecStartPre waiting
+WantedBy=getty.target
+