Browse code

pkg/kamailio/obs: added --atexit=no into systemd unit file [skip ci]

(cherry picked from commit 9a35a5b95e8144dbdb18003f40e49e5b497274f3)

Sergey Safarov authored on 15/02/2021 07:11:25
Showing 1 changed files
... ...
@@ -1119,6 +1119,12 @@ UUID module for Kamailio.
1119 1119
 sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
1120 1120
 %endif
1121 1121
 
1122
+# on latest dist need to add --atexit=no for Kamailio options. More details GH #2616
1123
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1124
+sed -i -e 's|/usr/sbin/kamailio|/usr/sbin/kamailio --atexit=no|' pkg/kamailio/obs/kamailio.service
1125
+%endif
1126
+
1127
+
1122 1128
 %build
1123 1129
 ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
1124 1130
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8