[PATCH] osmo-pcu[master]: Copy sysmopcu.service to osmo-pcu

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Mon Jul 3 16:51:44 UTC 2017


Review at  https://gerrit.osmocom.org/3106

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 at sysmocom.de>

Change-Id: I2ca6f6c486bd6fcf4d5b3d0a05d25dc04f020c26
---
A contrib/osmo-pcu.service
M contrib/sysmopcu.service
2 files changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/06/3106/1

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 @@
 
 [Install]
 WantedBy=multi-user.target
+Alias=osmo-pcu.service

-- 
To view, visit https://gerrit.osmocom.org/3106
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ca6f6c486bd6fcf4d5b3d0a05d25dc04f020c26
Gerrit-PatchSet: 1
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list