From e63c72acfb7eafd3da46dce7884f1b6c2a974986 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 6 Sep 2018 15:06:20 +0200 Subject: 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 --- contrib/osmo-pcu.service | 3 +-- contrib/sysmopcu.service | 17 ----------------- debian/osmo-pcu.service | 16 +--------------- 3 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 contrib/sysmopcu.service mode change 100644 => 120000 debian/osmo-pcu.service diff --git a/contrib/osmo-pcu.service b/contrib/osmo-pcu.service index 3066a66b..6329d31e 100644 --- a/contrib/osmo-pcu.service +++ b/contrib/osmo-pcu.service @@ -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 diff --git a/contrib/sysmopcu.service b/contrib/sysmopcu.service deleted file mode 100644 index df8c47e8..00000000 --- a/contrib/sysmopcu.service +++ /dev/null @@ -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 diff --git a/debian/osmo-pcu.service b/debian/osmo-pcu.service deleted file mode 100644 index 850a7153..00000000 --- a/debian/osmo-pcu.service +++ /dev/null @@ -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 diff --git a/debian/osmo-pcu.service b/debian/osmo-pcu.service new file mode 120000 index 00000000..f0774312 --- /dev/null +++ b/debian/osmo-pcu.service @@ -0,0 +1 @@ +../contrib/osmo-pcu.service \ No newline at end of file -- cgit v1.2.3