aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/systemd/osmo-pcu.service
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-10 13:28:25 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-09-10 16:09:54 +0200
commit516697e29a090c0137c49c66731b5d93125e8f7e (patch)
tree5b764bb49994e45fa05cc4139a5aa9116318f0c7 /contrib/systemd/osmo-pcu.service
parent3e9c071aa66d2a7f7465c4cac229f205d2dbecdd (diff)
Install systemd services with autotools
Diffstat (limited to 'contrib/systemd/osmo-pcu.service')
-rw-r--r--contrib/systemd/osmo-pcu.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/systemd/osmo-pcu.service b/contrib/systemd/osmo-pcu.service
new file mode 100644
index 00000000..6329d31e
--- /dev/null
+++ b/contrib/systemd/osmo-pcu.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Osmocom osmo-pcu
+
+[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