From aee2a27c3e294e1429d465ddd4658b1111bf1c0f Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 17 Apr 2018 06:57:48 +0200 Subject: [PATCH] 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 --- debian/ngcp-rtpengine-daemon.service | 20 +++++++++++++++++++ .../ngcp-rtpengine-recording-daemon.service | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 debian/ngcp-rtpengine-daemon.service create mode 100644 debian/ngcp-rtpengine-recording-daemon.service diff --git a/debian/ngcp-rtpengine-daemon.service b/debian/ngcp-rtpengine-daemon.service new file mode 100644 index 000000000..e707d1710 --- /dev/null +++ b/debian/ngcp-rtpengine-daemon.service @@ -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 diff --git a/debian/ngcp-rtpengine-recording-daemon.service b/debian/ngcp-rtpengine-recording-daemon.service new file mode 100644 index 000000000..967989db2 --- /dev/null +++ b/debian/ngcp-rtpengine-recording-daemon.service @@ -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