Change in osmo-pcu[master]: Cleanup of systemd service files

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Thu Sep 6 13:07:34 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/10804


Change subject: Cleanup of systemd service files
......................................................................

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
---
M contrib/osmo-pcu.service
D contrib/sysmopcu.service
D debian/osmo-pcu.service
A debian/osmo-pcu.service
4 files changed, 2 insertions(+), 34 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/04/10804/1

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 @@
 
 [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
deleted file mode 100644
index 850a715..0000000
--- 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 0000000..f077431
--- /dev/null
+++ b/debian/osmo-pcu.service
@@ -0,0 +1 @@
+../contrib/osmo-pcu.service
\ No newline at end of file

-- 
To view, visit https://gerrit.osmocom.org/10804
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibd82ec12cbeb73a27ca5860266587efb58be14ab
Gerrit-Change-Number: 10804
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180906/beae8004/attachment.htm>


More information about the gerrit-log mailing list