Cleanup of systemd service files

Let's use a symlink in debian/ as we do in other projects,
and merge the two service files since anyway they call the same binary.

Change-Id: Ibd82ec12cbeb73a27ca5860266587efb58be14ab
This commit is contained in:
Pau Espin 2018-09-06 15:06:20 +02:00
parent 54af2dba78
commit e63c72acfb
3 changed files with 2 additions and 34 deletions

View File

@ -1,5 +1,5 @@
[Unit]
Description=sysmocom sysmoPCU
Description=Osmocom osmo-pcu
[Service]
Type=simple
@ -14,4 +14,3 @@ CPUSchedulingPriority=1
[Install]
WantedBy=multi-user.target
Alias=sysmopcu.service

View File

@ -1,17 +0,0 @@
[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=osmo-pcu.service

View File

@ -1,15 +0,0 @@
[Unit]
Description=Osmocom osmo-pcu
[Service]
Type=simple
ExecStart=/usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg
Restart=always
RestartSec=2
# Read quickly enough
CPUSchedulingPolicy=rr
CPUSchedulingPriority=1
[Install]
WantedBy=multi-user.target

1
debian/osmo-pcu.service vendored Symbolic link
View File

@ -0,0 +1 @@
../contrib/osmo-pcu.service