summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-19 13:10:07 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-19 13:10:07 +0100
commit0be78bafee2d7e1c6df48ec78f6ba1bcf17b1295 (patch)
tree3f134b7e92162da9d91aa421540dd8e800220fa5
parent67f5e1b3eb23f780d9576e56ad404d54771532c3 (diff)
downloadmerchant-0be78bafee2d7e1c6df48ec78f6ba1bcf17b1295.tar.gz
merchant-0be78bafee2d7e1c6df48ec78f6ba1bcf17b1295.tar.bz2
merchant-0be78bafee2d7e1c6df48ec78f6ba1bcf17b1295.zip
add service file for webhook helper
-rw-r--r--debian/taler-merchant.taler-merchant-httpd.service5
-rw-r--r--debian/taler-merchant.taler-merchant-webhook.service14
2 files changed, 18 insertions, 1 deletions
diff --git a/debian/taler-merchant.taler-merchant-httpd.service b/debian/taler-merchant.taler-merchant-httpd.service
index 6737fadf..c863c14e 100644
--- a/debian/taler-merchant.taler-merchant-httpd.service
+++ b/debian/taler-merchant.taler-merchant-httpd.service
@@ -1,10 +1,13 @@
[Unit]
Description=GNU Taler payment system merchant backend
+After=postgres.service
[Service]
User=taler-merchant-httpd
Type=simple
-Restart=on-failure
+Restart=always
+RestartSec=1s
+RuntimeMaxSec=3600s
ExecStart=/usr/bin/taler-merchant-httpd -c /etc/taler/taler.conf
[Install]
diff --git a/debian/taler-merchant.taler-merchant-webhook.service b/debian/taler-merchant.taler-merchant-webhook.service
new file mode 100644
index 00000000..0e3e0c60
--- /dev/null
+++ b/debian/taler-merchant.taler-merchant-webhook.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=GNU Taler payment system merchant backend webhook trigger service
+After=postgres.service
+
+[Service]
+User=taler-merchant-httpd
+Type=simple
+Restart=always
+RestartSec=1s
+ExecStart=/usr/bin/taler-merchant-webhook -c /etc/taler/taler.conf
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=full
+RuntimeMaxSec=3600s