2
0
Эх сурвалжийг харах

pkg/rpm: use pkg memory size when checking config in init script

- for large configs, check can fail due to low memory
Daniel-Constantin Mierla 11 жил өмнө
parent
commit
91a362e2f1

+ 1 - 1
pkg/kamailio/rpm/kamailio.init

@@ -35,7 +35,7 @@ check_fork ()
 check_kamailio_config ()
 check_kamailio_config ()
 {
 {
         # Check if kamailio configuration is valid before starting the server
         # Check if kamailio configuration is valid before starting the server
-        out=$($KAM -c 2>&1 > /dev/null)
+        out=$($KAM -M $PKG_MEMORY -c 2>&1 > /dev/null)
         retcode=$?
         retcode=$?
         if [ "$retcode" != '0' ]; then
         if [ "$retcode" != '0' ]; then
             echo "Not starting $DESC: invalid configuration file!"
             echo "Not starting $DESC: invalid configuration file!"