summarylogtreecommitdiffstats
path: root/nym-gateway@.service
diff options
context:
space:
mode:
authorcrabvk2021-07-22 21:02:03 +0500
committercrabvk2021-07-22 21:02:03 +0500
commit4a3729250b0730b38c6fcbde88a79ee2038fee2f (patch)
tree8b8bfbcb1b9c85f3f0c31fe813368b513e16e626 /nym-gateway@.service
parentdec13bafa496c5657d5516dab3d00e2ca47d9aa4 (diff)
downloadaur-nym.tar.gz
Add service file for nym-gateway
Diffstat (limited to 'nym-gateway@.service')
-rw-r--r--nym-gateway@.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/nym-gateway@.service b/nym-gateway@.service
new file mode 100644
index 00000000000..9a303cd6e31
--- /dev/null
+++ b/nym-gateway@.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Nym Gateway %I
+After=network-online.target nss-lookup.target
+Wants=network-online.target nss-lookup.target
+Documentation=https://nymtech.net/docs/run-nym-nodes/gateways/
+StartLimitIntervalSec=350
+StartLimitBurst=10
+
+[Service]
+User=nym
+ExecStart=/usr/bin/nym-gateway run --id %i
+KillSignal=SIGINT
+Restart=on-failure
+RestartSec=30
+LimitNOFILE=65536
+
+[Install]
+WantedBy=multi-user.target