Max has submitted this change and it was merged. Change subject: Copy sysmopcu.service to osmo-pcu ......................................................................
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 <[email protected]> Change-Id: I2ca6f6c486bd6fcf4d5b3d0a05d25dc04f020c26 --- A contrib/osmo-pcu.service M contrib/sysmopcu.service 2 files changed, 18 insertions(+), 0 deletions(-) Approvals: Pau Espin Pedrol: Looks good to me, but someone else must approve Harald Welte: Looks good to me, approved Jenkins Builder: Verified 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: merged Gerrit-Change-Id: I2ca6f6c486bd6fcf4d5b3d0a05d25dc04f020c26 Gerrit-PatchSet: 1 Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Owner: Max <[email protected]> Gerrit-Reviewer: Harald Welte <[email protected]> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Max <[email protected]> Gerrit-Reviewer: Pau Espin Pedrol <[email protected]> Gerrit-Reviewer: neels <[email protected]>
