This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
TT#186700 systemd template units
Change-Id: Ic04ede985da5f239a6dae6515340a43a0426ad9d
pull/1525/head
Victor Seva
3 years ago
parent
9e95681f3b
commit
9cd3cc7f00
4 changed files
with
15 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
debian/generate-systemd-templates.sh
+2
-0
debian/ngcp-rtpengine-daemon.links
+2
-0
debian/ngcp-rtpengine-recording-daemon.links
+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)
Write
Preview
Loading…
Cancel
Save