summarylogtreecommitdiffstats
path: root/nym-gateway@.service
diff options
context:
space:
mode:
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