summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-03-18 15:48:30 +0000
committerGitHub <noreply@github.com>2025-03-18 15:48:30 +0000
commit78a3ba7039e8ad9be8ca1960ecc5dac9a985fb0e (patch)
tree2fdef8540f26e4e03dbea232a09a26360fd7ada7 /src/systemd
parent62ebdb827b1b3097b345aae0cf13b636ca055537 (diff)
parentd8a6295a13a6eb8faf127639ae15fa76608e7351 (diff)
downloadvyos-1x-78a3ba7039e8ad9be8ca1960ecc5dac9a985fb0e.tar.gz
vyos-1x-78a3ba7039e8ad9be8ca1960ecc5dac9a985fb0e.zip
Merge pull request #4398 from jestabro/commitdHEADcurrent
T7121: Set up communication vyconfd to vyos-commitd
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/vyos-commitd.service27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/systemd/vyos-commitd.service b/src/systemd/vyos-commitd.service
new file mode 100644
index 000000000..5b083f500
--- /dev/null
+++ b/src/systemd/vyos-commitd.service
@@ -0,0 +1,27 @@
+[Unit]
+Description=VyOS commit daemon
+
+# Without this option, lots of default dependencies are added,
+# among them network.target, which creates a dependency cycle
+DefaultDependencies=no
+
+# Seemingly sensible way to say "as early as the system is ready"
+# All vyos-configd needs is read/write mounted root
+After=systemd-remount-fs.service
+Before=vyos-router.service
+
+[Service]
+ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-commitd
+Type=idle
+
+SyslogIdentifier=vyos-commitd
+SyslogFacility=daemon
+
+Restart=on-failure
+
+# Does't work in Jessie but leave it here
+User=root
+Group=vyattacfg
+
+[Install]
+WantedBy=vyos.target