Hi Sammy,<br><br>When you use the init script, it is starting Kamailio with the correct arguments to get the environment you wish (-m 2048 probably). If however, you just call kamailio these args are not there. Im not sure why you are running with kamailio command directly. Why don&#39;t you add your init script to the appropriate runlevel for auto startup?<div>
<br></div><div>Cheers</div><div>Jason </div><div><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 3:06 PM, Uri Shacked <span dir="ltr">&lt;<a href="mailto:ushacked@gmail.com">ushacked@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi again....</div>
<div> </div>
<div>i installed kamailio 3.2.2 today.</div>
<div>i used the chkconfig tool to get kamailio run at boot.</div>
<div>i edited both /etc/init.d/kamailio and /etc/default/kamailio files to run with 2048Mg of memory.</div>
<div>now, when i run /etc/init.d/kamailio start, it starts with the right amount of memory.</div>
<div>when i rum &quot;kamailio&quot; only, it starts with 32Mb....</div>
<div> </div>
<div>
<div>i use centos 6.2 64bit.</div></div>
<div>any ideas?</div><div><div class="h5">
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Tue, Oct 25, 2011 at 1:18 PM, Uri Shacked <span dir="ltr">&lt;<a href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hi.<br>I already checked it all. The kamailio start and stop command did not<br>work. The init script i used was for debian. Now i use another script,<br>

for centos. It works. I add the kamailio proccess with chkconfig tool.<br>Thanks.<br>
<div><br>On 10/25/11, Sammy Govind &lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt; wrote:<br>&gt; Thanks Alex,<br>&gt;<br>&gt; Hey Uri, can you check if you&#39;ve /etc/init.d/kamailio file exists - open<br>

&gt; that file if exists and cross verify few parameters.<br>&gt; Few of these are as follows<br>&gt;<br>&gt; PATH=/sbin:/bin:/usr/sbin:/usr/bin<br></div>&gt; DAEMON=*/usr/local/sbin/kamailio*<br>&gt; NAME=kamailio<br>&gt; DESC=kamailio<br>

&gt; HOMEDIR=/var/run/<br>&gt; *PIDFILE*=$HOMEDIR/$NAME.pid<br>&gt; DEFAULTS=*/etc/default/kamailio.default*<br>
<div>
<div>&gt; RUN_KAMAILIO=yes<br>&gt;<br>&gt; Make sure /etc/default/kamailio.default file exits. here are the contents of<br>&gt; my file.<br>&gt;<br>&gt; RUN_KAMAILIO=yes<br>&gt; USER=kamailio<br>&gt; GROUP=kamailio<br>
&gt; MEMORY=64<br>&gt; DUMP_CORE=no<br>&gt;<br>&gt; On Tue, Oct 25, 2011 at 3:38 AM, Klaus Darilion &lt;<br>&gt; <a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>&gt; wrote:<br>
&gt;<br>&gt;&gt; Test the startupscript if they work:<br>
&gt;&gt;<br>&gt;&gt; /etc/init.d/kamailio start<br>&gt;&gt; /etc/init.d/kamailio stop<br>&gt;&gt;<br>&gt;&gt; If this works, then make sure to have proper symlinks from the<br>&gt;&gt; corresponding runlevel to the startup script. Do it manually or use the<br>

&gt;&gt; chkconfig tool.<br>&gt;&gt;<br>&gt;&gt; klaus<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On 24.10.2011 08:00, Uri Shacked wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; hi again,<br>&gt;&gt;&gt; i found out that on my centos 5.4 the command start-stop-daemon that the<br>

&gt;&gt;&gt; /etc/init.d/kamailio uses is not recognized.<br>&gt;&gt;&gt; it is kamailio3.2 any ideas?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Mon, Oct 24, 2011 at 3:03 PM, Uri Shacked &lt;<a href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a><br>

&gt;&gt;&gt; &lt;mailto:<a href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a>&gt;&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;    Hi,<br>&gt;&gt;&gt;    what is the best way to start kamailio at boot?<br>
&gt;&gt;&gt;    the example in the install is not working for me....<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br></div></div>&gt;&gt;&gt; ______________________________**_________________<br>
<div>&gt;&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt;&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br></div>&gt;&gt;&gt; <a href="http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users" target="_blank">http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;<br>

&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; ______________________________**_________________<br>
<div>&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br></div>&gt;&gt; <a href="http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users" target="_blank">http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users</a>&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;<br>

&gt;&gt;<br>&gt;<br><span><font color="#888888"><br>--<br>Sent from my mobile device<br></font></span></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>

<pre>This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at http://www.smilecoms.com/disclaimer