aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-06 15:06:20 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-09-06 15:06:22 +0200
commite63c72acfb7eafd3da46dce7884f1b6c2a974986 (patch)
treecbaf18563ba091cbfe93c26945aa4be381c087c0
parent54af2dba78c79bf61721a0b454d0e651f99133b7 (diff)
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
-rw-r--r--contrib/osmo-pcu.service3
-rw-r--r--contrib/sysmopcu.service17
l---------[-rw-r--r--]debian/osmo-pcu.service16
3 files changed, 2 insertions, 34 deletions
diff --git a/contrib/osmo-pcu.service b/contrib/osmo-pcu.service
index 3066a66..6329d31 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 df8c47e..0000000
--- 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
index 850a715..f077431 100644..120000
--- a/debian/osmo-pcu.service
+++ b/debian/osmo-pcu.service
@@ -1,15 +1 @@
-[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
+../contrib/osmo-pcu.service \ No newline at end of file