aboutsummaryrefslogtreecommitdiff
path: root/bin/hook/etc/webhook.service
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hook/etc/webhook.service')
-rw-r--r--bin/hook/etc/webhook.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/hook/etc/webhook.service b/bin/hook/etc/webhook.service
new file mode 100644
index 0000000..20cd6bb
--- /dev/null
+++ b/bin/hook/etc/webhook.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Webhook daemon
+After=network.target
+ConditionPathExists=/etc/webhook.conf
+
+[Service]
+# debian/ubuntu version of webhook is comically old, so i'm using the static
+# binary from the github releases page
+# ExecStart=/usr/local/bin/webhook -port 9000 -hooks /etc/webhook.conf -urlprefix '' -verbose
+ExecStart=/usr/local/bin/webhook -port 9000 -hooks /etc/webhook.conf -urlprefix ''
+RunAs=webhook
+
+[Install]
+WantedBy=multi-user.target