TT#186700 systemd template units

Change-Id: Ic04ede985da5f239a6dae6515340a43a0426ad9d
pull/1525/head
Victor Seva 3 years ago
parent 9e95681f3b
commit 9cd3cc7f00

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

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

@ -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
debian/rules vendored

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