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-27 08:14:20 +0200
commit33672c81a8a1b0a9e5508482a5a765243e21849c (patch)
tree62c80e563329e5f8018c24c662f81f4a929ea258 /src/systemd
parent8c471a772153ae7dc6d3b934c5a96706bc9a6ba5 (diff)
downloadvyos-1x-33672c81a8a1b0a9e5508482a5a765243e21849c.tar.gz
vyos-1x-33672c81a8a1b0a9e5508482a5a765243e21849c.zip
T1598: initial implementation of the hosts keeper daemon.
Conflicts: debian/control
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
+