Browse Source

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
pull/1407/head
Richard Fuchs 4 years ago
parent
commit
30c124ff05
4 changed files with 4 additions and 2 deletions
  1. +2
    -0
      debian/ngcp-rtpengine-daemon.links
  2. +0
    -1
      debian/ngcp-rtpengine-daemon.service
  3. +2
    -0
      debian/ngcp-rtpengine-recording-daemon.links
  4. +0
    -1
      debian/ngcp-rtpengine-recording-daemon.service

+ 2
- 0
debian/ngcp-rtpengine-daemon.links View File

@ -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

+ 0
- 1
debian/ngcp-rtpengine-daemon.service View File

@ -14,4 +14,3 @@ ExecStopPost=/usr/sbin/ngcp-rtpengine-iptables-setup stop
[Install]
WantedBy=multi-user.target
Alias=rtpengine.service

+ 2
- 0
debian/ngcp-rtpengine-recording-daemon.links View File

@ -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

+ 0
- 1
debian/ngcp-rtpengine-recording-daemon.service View File

@ -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

Loading…
Cancel
Save