From 30c124ff05d95d0502743f4e56c9fc83f14caf25 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 30 Nov 2021 09:40:16 -0500 Subject: [PATCH] TT#124273 use symlinks instead of Install/Alias for aliases The aliases created by systemd under Install/Alias are created and removed as the service is enabled and disabled, and don't serve as generic alias names. Furthermore they seem to linger behind when the package is removed or replaced, which leads to collisions and installation failures when the NGCP-specific package is replaced by the non-NGCP version. Change-Id: I2313ffffb1fa4fb1d570b23113b0618744c58e26 --- debian/ngcp-rtpengine-daemon.links | 2 ++ debian/ngcp-rtpengine-daemon.service | 1 - debian/ngcp-rtpengine-recording-daemon.links | 2 ++ debian/ngcp-rtpengine-recording-daemon.service | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 debian/ngcp-rtpengine-daemon.links create mode 100644 debian/ngcp-rtpengine-recording-daemon.links diff --git a/debian/ngcp-rtpengine-daemon.links b/debian/ngcp-rtpengine-daemon.links new file mode 100644 index 000000000..37055f8ee --- /dev/null +++ b/debian/ngcp-rtpengine-daemon.links @@ -0,0 +1,2 @@ +/lib/systemd/system/ngcp-rtpengine-daemon.service /lib/systemd/system/rtpengine-daemon.service +/lib/systemd/system/ngcp-rtpengine-daemon.service /lib/systemd/system/rtpengine.service diff --git a/debian/ngcp-rtpengine-daemon.service b/debian/ngcp-rtpengine-daemon.service index a9a78eedb..b4838768c 100644 --- a/debian/ngcp-rtpengine-daemon.service +++ b/debian/ngcp-rtpengine-daemon.service @@ -14,4 +14,3 @@ ExecStopPost=/usr/sbin/ngcp-rtpengine-iptables-setup stop [Install] WantedBy=multi-user.target -Alias=rtpengine.service diff --git a/debian/ngcp-rtpengine-recording-daemon.links b/debian/ngcp-rtpengine-recording-daemon.links new file mode 100644 index 000000000..a4b875211 --- /dev/null +++ b/debian/ngcp-rtpengine-recording-daemon.links @@ -0,0 +1,2 @@ +/lib/systemd/system/ngcp-rtpengine-recording-daemon.service /lib/systemd/system/rtpengine-recording-daemon.service +/lib/systemd/system/ngcp-rtpengine-recording-daemon.service /lib/systemd/system/rtpengine-recording.service diff --git a/debian/ngcp-rtpengine-recording-daemon.service b/debian/ngcp-rtpengine-recording-daemon.service index 1945cc68a..3f6b98435 100644 --- a/debian/ngcp-rtpengine-recording-daemon.service +++ b/debian/ngcp-rtpengine-recording-daemon.service @@ -14,4 +14,3 @@ ExecStart=/usr/sbin/rtpengine-recording -f -E --no-log-timestamps --pidfile /run [Install] WantedBy=multi-user.target -Alias=rtpengine-recording.service