summaryrefslogtreecommitdiff
path: root/packages/systemd/ndpid@.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'packages/systemd/ndpid@.service.in')
-rw-r--r--packages/systemd/ndpid@.service.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/systemd/ndpid@.service.in b/packages/systemd/ndpid@.service.in
new file mode 100644
index 000000000..b59a6612c
--- /dev/null
+++ b/packages/systemd/ndpid@.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=nDPId Service on interface %i
+After=ndpisrvd.service
+Requires=ndpisrvd.service
+
+[Service]
+Type=simple
+ExecStartPre=/bin/sh -c 'test -r "@CMAKE_INSTALL_PREFIX@/etc/nDPId/%i.conf" || cp -v "@CMAKE_INSTALL_PREFIX@/share/nDPId/ndpid.conf.example" "@CMAKE_INSTALL_PREFIX@/etc/nDPId/%i.conf"'
+ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/nDPId -f @CMAKE_INSTALL_PREFIX@/etc/nDPId/%i.conf -i %i -u ndpid -c /run/nDPIsrvd/collector
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target