summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-event-handler.service
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-06-08 12:39:50 +0200
committerGitHub <noreply@github.com>2022-06-08 12:39:50 +0200
commitcfd958c08d2b20313dd51efc3d17695711c45dc4 (patch)
treeb31d357771b4f93eafff4dc69d7d0174c5030a01 /src/systemd/vyos-event-handler.service
parentc40b9064d97d14bee7c5f9f9674f898a1b25a6ae (diff)
parent5f9d0ad5b258258654a9a897f35a6da8d9447670 (diff)
downloadvyos-1x-cfd958c08d2b20313dd51efc3d17695711c45dc4.tar.gz
vyos-1x-cfd958c08d2b20313dd51efc3d17695711c45dc4.zip
Merge pull request #1340 from sever-sever/T3083
event-handler: T3083: Add simple event-handler
Diffstat (limited to 'src/systemd/vyos-event-handler.service')
-rw-r--r--src/systemd/vyos-event-handler.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/systemd/vyos-event-handler.service b/src/systemd/vyos-event-handler.service
new file mode 100644
index 000000000..6afe4f95b
--- /dev/null
+++ b/src/systemd/vyos-event-handler.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=VyOS event handler
+After=network.target vyos-router.service
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=/usr/bin/python3 /usr/libexec/vyos/system/vyos-event-handler.py --config /run/vyos-event-handler.conf
+
+[Install]
+WantedBy=multi-user.target