Browse Source

TT#186700 systemd template units

Change-Id: Ic04ede985da5f239a6dae6515340a43a0426ad9d
pull/1525/head
Victor Seva 3 years ago
parent
commit
9cd3cc7f00
4 changed files with 15 additions and 0 deletions
  1. +8
    -0
      debian/generate-systemd-templates.sh
  2. +2
    -0
      debian/ngcp-rtpengine-daemon.links
  3. +2
    -0
      debian/ngcp-rtpengine-recording-daemon.links
  4. +3
    -0
      debian/rules

+ 8
- 0
debian/generate-systemd-templates.sh View File

@ -0,0 +1,8 @@
#!/bin/sh
# generate templates
for i in ngcp-rtpengine-daemon ngcp-rtpengine-recording-daemon; do
sed \
-e 's:daemon\.pid:daemon.%i.pid:g' \
-e 's:/etc/rtpengine/:/etc/rtpengine_%i/:g' \
$i.service > $i@.service
done

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

@ -1,2 +1,4 @@
/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
/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

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

@ -1,2 +1,4 @@
/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
/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

+ 3
- 0
debian/rules View File

@ -30,6 +30,9 @@ endif
%:
dh $@
execute_before_dh_auto_configure:
(cd debian && sh generate-systemd-templates.sh)
execute_before_dh_auto_install-indep:
# Create the directories to install the source into
dh_installdirs -p$(pdkms) usr/src/$(sname)-$(sversion)


Loading…
Cancel
Save