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
This commit is contained in:
Max 2017-07-03 18:47:25 +02:00
parent 3741f14689
commit 241f5bcb00
2 changed files with 18 additions and 0 deletions

17
contrib/osmo-pcu.service Normal file
View File

@ -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

View File

@ -14,3 +14,4 @@ CPUSchedulingPriority=1
[Install]
WantedBy=multi-user.target
Alias=osmo-pcu.service