aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-07-03 18:47:25 +0200
committerMax <msuraev@sysmocom.de>2017-07-03 18:50:49 +0200
commit241f5bcb00f9c6fee4200a3aea9aa497bf0d3eee (patch)
tree59f4cdba5d1eb97b712f58cec43a2ba687c018a4
parent3741f14689d2058547f90b944aff8ea23ce6233e (diff)
Copy sysmopcu.service to osmo-pcu
This way the name of systemd service file will match the name of the binary similar to OsmoBTS. Add aliases so the user can use both old and new names regardless of which file is installed. Once the corresponding changes to OE recipes are applied old file can be removed. Based on work by Pau Espin Pedrol <pespin@sysmocom.de> Change-Id: I2ca6f6c486bd6fcf4d5b3d0a05d25dc04f020c26
-rw-r--r--contrib/osmo-pcu.service17
-rw-r--r--contrib/sysmopcu.service1
2 files changed, 18 insertions, 0 deletions
diff --git a/contrib/osmo-pcu.service b/contrib/osmo-pcu.service
new file mode 100644
index 0000000..3066a66
--- /dev/null
+++ b/contrib/osmo-pcu.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=sysmocom sysmoPCU
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg
+Restart=always
+RestartSec=2
+RestartPreventExitStatus=1
+
+# The msg queues must be read fast enough
+CPUSchedulingPolicy=rr
+CPUSchedulingPriority=1
+
+[Install]
+WantedBy=multi-user.target
+Alias=sysmopcu.service
diff --git a/contrib/sysmopcu.service b/contrib/sysmopcu.service
index 3e3ff07..df8c47e 100644
--- a/contrib/sysmopcu.service
+++ b/contrib/sysmopcu.service
@@ -14,3 +14,4 @@ CPUSchedulingPriority=1
[Install]
WantedBy=multi-user.target
+Alias=osmo-pcu.service