Explorar el Código

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 hace 11 años
padre
commit
91a362e2f1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/kamailio/rpm/kamailio.init

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

@@ -35,7 +35,7 @@ check_fork ()
 check_kamailio_config ()
 {
         # 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=$?
         if [ "$retcode" != '0' ]; then
             echo "Not starting $DESC: invalid configuration file!"