aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/systemd/osmo-hlr.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/systemd/osmo-hlr.service')
-rw-r--r--contrib/systemd/osmo-hlr.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/systemd/osmo-hlr.service b/contrib/systemd/osmo-hlr.service
index 2eea0c4..2822f13 100644
--- a/contrib/systemd/osmo-hlr.service
+++ b/contrib/systemd/osmo-hlr.service
@@ -1,12 +1,19 @@
[Unit]
Description=Osmocom Home Location Register (OsmoHLR)
Documentation=https://osmocom.org/projects/osmo-hlr/wiki/OsmoHLR
+After=network-online.target
+Wants=network-online.target
[Service]
Type=simple
Restart=always
+StateDirectory=osmocom
+WorkingDirectory=%S/osmocom
+User=osmocom
+Group=osmocom
ExecStart=/usr/bin/osmo-hlr -c /etc/osmocom/osmo-hlr.cfg -l /var/lib/osmocom/hlr.db
RestartSec=2
+ProtectHome=true
[Install]
WantedBy=multi-user.target