Module: kamailio
Branch: 5.4
Commit: 57fb85e2a1dc50618179b79901563bab502169da
URL:
https://github.com/kamailio/kamailio/commit/57fb85e2a1dc50618179b79901563ba…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2021-02-15T13:43:09+03:00
pkg/kamailio/obs: added --atexit=no into systemd unit file [skip ci]
(cherry picked from commit 9a35a5b95e8144dbdb18003f40e49e5b497274f3)
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/57fb85e2a1dc50618179b79901563ba…
Patch:
https://github.com/kamailio/kamailio/commit/57fb85e2a1dc50618179b79901563ba…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index dc76d321f6..0bd9c0238a 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -1119,6 +1119,12 @@ UUID module for Kamailio.
sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
%endif
+# on latest dist need to add --atexit=no for Kamailio options. More details GH #2616
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
+sed -i -e 's|/usr/sbin/kamailio|/usr/sbin/kamailio --atexit=no|'
pkg/kamailio/obs/kamailio.service
+%endif
+
+
%build
ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8