From 96696655411cbf359c00ebdd0c16609c2ccff020 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 16 Jan 2025 08:41:03 -0400 Subject: [PATCH] MT#55283 el: don't fork to background Reported in #1896 Change-Id: I58d09ef930c8fa55efa5592ff746a65270dea68b (cherry picked from commit aca2433bbd28b20a54e4415ef1d303e086573b52) (cherry picked from commit a753771c32ddda6dee81ae763f20a562b13e0d9a) --- el/rtpengine.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/el/rtpengine.service b/el/rtpengine.service index 879de3b968..bfa9f00366 100644 --- a/el/rtpengine.service +++ b/el/rtpengine.service @@ -3,7 +3,7 @@ Description=NGCP RTP/media Proxy Daemon After=network-online.target [Service] -Type=forking +Type=notify Environment=CFG_FILE=/etc/rtpengine/rtpengine.conf EnvironmentFile=/etc/sysconfig/rtpengine User=ngcp-rtpengine @@ -13,7 +13,7 @@ CapabilityBoundingSet=CAP_NET_ADMIN CAP_SYS_NICE LimitNOFILE=150000 RuntimeDirectory=rtpengine PIDFile=/run/rtpengine/rtpengine.pid -ExecStart=/usr/bin/rtpengine --config-file=${CFG_FILE} --pidfile=${PID_FILE} +ExecStart=/usr/bin/rtpengine --config-file=${CFG_FILE} --pidfile=${PID_FILE} -f RestartSec=3s TimeoutSec=15s Restart=on-failure