Browse Source

TT#26264 Add systemd service wrappers for the init scripts

Properly switching to native systemd service files is too intrusive for
these services at this point of the release cycle. Let's use this hack
for now, and then convert these to the serveral .service, and .mount
units required.

Change-Id: I8f66bfd8be5924232bf2c34d42b18d2a332db3ee
changes/41/20541/1
Guillem Jover 8 years ago
parent
commit
aee2a27c3e
2 changed files with 40 additions and 0 deletions
  1. +20
    -0
      debian/ngcp-rtpengine-daemon.service
  2. +20
    -0
      debian/ngcp-rtpengine-recording-daemon.service

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

@ -0,0 +1,20 @@
[Unit]
Description=NGCP RTP/media Proxy Daemon
After=network-online.target
After=remote-fs.target
Requires=network-online.target
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
RemainAfterExit=yes
SuccessExitStatus=5 6
PIDFile=/run/rtpengine.pid
ExecStart=/etc/init.d/ngcp-rtpengine-daemon start
ExecStop=/etc/init.d/ngcp-rtpengine-daemon stop
[Install]
WantedBy=multi-user.target

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

@ -0,0 +1,20 @@
[Unit]
Description=NGCP RTP/media Recording Daemon
After=network-online.target
After=remote-fs.target
Requires=network-online.target
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
RemainAfterExit=yes
SuccessExitStatus=5 6
PIDFile=/run/ngcp-rtpengine-recording-daemon.pid
ExecStart=/etc/init.d/ngcp-rtpengine-recording-daemon start
ExecStop=/etc/init.d/ngcp-rtpengine-recording-daemon stop
[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save