aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Heinold <henning@itconsulting-heinold.de>2013-12-17 18:37:45 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-17 19:16:10 +0100
commitc92b964e2dec76397329e9005ca277466867cbc6 (patch)
tree69da6be97cd3bcc8ecebabef9d92acd9f3175818
parentb3a87ced5ab427b3ab95d79557ddad1cac254c6c (diff)
systemd: Add a service for the sysmopcu
Provide a systemd service file for sysmopcu, leaves the bundled combined sysvinit for sysmobts and sysmopcu for legacy systems. Sponsored-by: sysmocom
-rw-r--r--contrib/sysmopcu.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/sysmopcu.service b/contrib/sysmopcu.service
new file mode 100644
index 0000000..11e3c8c
--- /dev/null
+++ b/contrib/sysmopcu.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=sysmocom sysmoPCU
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg
+Restart=always
+RestartSec=5
+
+# The msg queues must be read fast enough
+CPUSchedulingPolicy=rr
+CPUSchedulingPriority=1
+
+[Install]
+WantedBy=multi-user.target