summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/event-handler/systemd_event_handler_service.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/event-handler/systemd_event_handler_service.j2 b/data/templates/event-handler/systemd_event_handler_service.j2
new file mode 100644
index 000000000..da35a51c4
--- /dev/null
+++ b/data/templates/event-handler/systemd_event_handler_service.j2
@@ -0,0 +1,11 @@
+[Unit]
+Description=Event handler
+After=network.target
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=/usr/bin/python3 /usr/libexec/vyos/vyos-event-handler.py --config /run/vyos-event-handler.conf
+
+[Install]
+WantedBy=multi-user.target