aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/systemd/osmo-gtphub.service12
l---------debian/osmo-gtphub.service1
2 files changed, 13 insertions, 0 deletions
diff --git a/contrib/systemd/osmo-gtphub.service b/contrib/systemd/osmo-gtphub.service
new file mode 100644
index 00000000..48817858
--- /dev/null
+++ b/contrib/systemd/osmo-gtphub.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Osmocom GTP Hub
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/osmo-gtphub -c /etc/osmocom/osmo-gtphub.cfg
+Restart=always
+RestartSec=2
+RestartPreventExitStatus=1
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/osmo-gtphub.service b/debian/osmo-gtphub.service
new file mode 120000
index 00000000..81a0eb47
--- /dev/null
+++ b/debian/osmo-gtphub.service
@@ -0,0 +1 @@
+../contrib/systemd/osmo-gtphub.service \ No newline at end of file