Module: sip-router
Branch: master
Commit: 91a362e2f1bae90e2564491560aff8bad5b04564
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=91a362e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed May 28 15:47:10 2014 +0200
pkg/rpm: use pkg memory size when checking config in init script
- for large configs, check can fail due to low memory
---
pkg/kamailio/rpm/kamailio.init | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pkg/kamailio/rpm/kamailio.init b/pkg/kamailio/rpm/kamailio.init
index 585ad77..cf76929 100644
--- a/pkg/kamailio/rpm/kamailio.init
+++ b/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!"