浏览代码

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 年之前
父节点
当前提交
91a362e2f1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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!"