diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-17 16:44:32 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-17 16:44:32 -0400 |
commit | e2622959a2234c7679c5c3eb18ba8642a1ce3a13 (patch) | |
tree | b2dcb9c60428c6300bfee80ede56327053bf9a71 /bin/hook/etc/webhook.service | |
parent | 031056a3d398daa007258664f67fb90f77edba8b (diff) | |
download | pablotron.org-e2622959a2234c7679c5c3eb18ba8642a1ce3a13.tar.bz2 pablotron.org-e2622959a2234c7679c5c3eb18ba8642a1ce3a13.zip |
add bin/hook
Diffstat (limited to 'bin/hook/etc/webhook.service')
-rw-r--r-- | bin/hook/etc/webhook.service | 14 |
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 |