summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-12-13 08:23:27 -0600
committerGitHub <noreply@github.com>2024-12-13 08:23:27 -0600
commit6a7766ec1fbb73edff908db9a7845941a7bf0391 (patch)
tree50644b0dd3a888683b451c9f833b67a7075ce66d /src/systemd
parent4221687fc7a0482b13a79358f9b0d085ec0835f6 (diff)
parent6999f85b2fc1c6e2421242e30e3810bd19250f3e (diff)
downloadvyos-1x-6a7766ec1fbb73edff908db9a7845941a7bf0391.tar.gz
vyos-1x-6a7766ec1fbb73edff908db9a7845941a7bf0391.zip
Merge pull request #4176 from jestabro/vyconf-minimal
T6718: use the vyconf daemon for validation of set commands
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/vyconfd.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/systemd/vyconfd.service b/src/systemd/vyconfd.service
new file mode 100644
index 000000000..ab2280263
--- /dev/null
+++ b/src/systemd/vyconfd.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=VyOS vyconf daemon
+
+# Without this option, lots of default dependencies are added,
+# among them network.target, which creates a dependency cycle
+DefaultDependencies=no
+
+After=systemd-remount-fs.service
+
+[Service]
+ExecStart=/usr/libexec/vyos/vyconf/vyconfd --log-file /var/run/log/vyconfd.log
+Type=exec
+SyslogIdentifier=vyconfd
+SyslogFacility=daemon
+Restart=on-failure
+
+User=root
+Group=vyattacfg
+
+[Install]
+WantedBy=vyos.target