<div dir="ltr"><div>hi,</div>
<div> </div>
<div>when i moved the /etc/init.d/kamailio file. kamailio did not start at boot.</div>
<div>now, i set the debug level to 4 and run kamailio in both ways.</div>
<div> </div>
<div>1. "/etc/init.d/kamailio start"</div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Feb 1, 2012 at 5:01 PM, Jason Penton <span dir="ltr"><<a href="mailto:jason.penton@smilecoms.com">jason.penton@smilecoms.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">I am not familiar with Centos but I suspect there is another script being run from somewhere. What I would do is move the /etc/init.d/kamailio script somewhere safe (your home directory for eg). Then reboot and see if kamailio still starts - if it does you need to find out whihc script is being called and where it is.
<div><br></div>
<div>If you are not running X by default you are prob in runlevel 3. If you are running X, then it will be 5. check where you runlevel scripts are pointing. e.g.</div>
<div><br></div>
<div>ls -al /etc/rc3.d/SXXkamailio (X = [0-9])</div>
<div><br></div>
<div>Cheers</div>
<div>Jason<br><br>
<div class="gmail_quote">
<div class="im">On Wed, Feb 1, 2012 at 4:26 PM, Uri Shacked <span dir="ltr"><<a href="mailto:uri.shacked@gmail.com" target="_blank">uri.shacked@gmail.com</a>></span> wrote:<br></div>
<div>
<div class="h5">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div>when i reboot the machine, it starts with 32Mb and i do not understand why...</div>
<div>so, does it use a startup file that i am not familiar with?</div>
<div>what is the appropriate runlevel? how do i set it and where?</div>
<div> </div>
<div>thanks,</div>
<div>Uri</div>
<div> </div>
<div> </div>
<div>>Hi Sammy,<br>><br>>When you use the init script, it is starting Kamailio with the correct<br>>arguments to get the environment you wish (-m 2048 probably). If however,<br>>you just call kamailio these args are not there. Im not sure why you are<br>
>running with kamailio command directly. Why don't you add your init script<br>>to the appropriate runlevel for auto startup?<br>><br>>Cheers<br>>Jason<br><br>On Wed, Feb 1, 2012 at 3:06 PM, Uri Shacked <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">ushacked at gmail.com</a>> wrote:<br>
<br>><i> Hi again....<br></i>><i><br></i>><i> i installed kamailio 3.2.2 today.<br></i>><i> i used the chkconfig tool to get kamailio run at boot.<br></i>><i> i edited both /etc/init.d/kamailio and /etc/default/kamailio files to run<br>
</i>><i> with 2048Mg of memory.<br></i>><i> now, when i run /etc/init.d/kamailio start, it starts with the right<br></i>><i> amount of memory.<br></i>><i> when i rum "kamailio" only, it starts with 32Mb....<br>
</i>><i><br></i>><i> i use centos 6.2 64bit.<br></i>><i> any ideas?<br></i>><i><br></i>><i><br></i>><i><br></i>><i><br></i>><i><br></i>><i> On Tue, Oct 25, 2011 at 1:18 PM, Uri Shacked <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">ushacked at gmail.com</a>> wrote:<br>
</i>><i><br></i>>><i> Hi.<br></i>>><i> I already checked it all. The kamailio start and stop command did not<br></i>>><i> work. The init script i used was for debian. Now i use another script,<br></i>>><i> for centos. It works. I add the kamailio proccess with chkconfig tool.<br>
</i>>><i> Thanks.<br></i>>><i><br></i>>><i> On 10/25/11, Sammy Govind <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">govoiper at gmail.com</a>> wrote:<br></i>>><i> > Thanks Alex,<br>
</i>>><i> ><br></i>>><i> > Hey Uri, can you check if you've /etc/init.d/kamailio file exists - open<br></i>>><i> > that file if exists and cross verify few parameters.<br></i>>><i> > Few of these are as follows<br>
</i>>><i> ><br></i>>><i> > PATH=/sbin:/bin:/usr/sbin:/usr/bin<br></i>>><i> > DAEMON=*/usr/local/sbin/kamailio*<br></i>>><i> > NAME=kamailio<br></i>>><i> > DESC=kamailio<br></i>>><i> > HOMEDIR=/var/run/<br>
</i>>><i> > *PIDFILE*=$HOMEDIR/$NAME.pid<br></i>>><i> > DEFAULTS=*/etc/default/kamailio.default*<br></i>>><i> > RUN_KAMAILIO=yes<br></i>>><i> ><br></i>>><i> > Make sure /etc/default/kamailio.default file exits. here are the<br>
</i>>><i> contents of<br></i>>><i> > my file.<br></i>>><i> ><br></i>>><i> > RUN_KAMAILIO=yes<br></i>>><i> > USER=kamailio<br></i>>><i> > GROUP=kamailio<br></i>>><i> > MEMORY=64<br>
</i>>><i> > DUMP_CORE=no<br></i>>><i> ><br></i>>><i> > On Tue, Oct 25, 2011 at 3:38 AM, Klaus Darilion <<br></i>>><i> > <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">klaus.mailinglists at pernau.at</a>> wrote:<br>
</i>>><i> ><br></i>>><i> >> Test the startupscript if they work:<br></i>>><i> >><br></i>>><i> >> /etc/init.d/kamailio start<br></i>>><i> >> /etc/init.d/kamailio stop<br>
</i>>><i> >><br></i>>><i> >> If this works, then make sure to have proper symlinks from the<br></i>>><i> >> corresponding runlevel to the startup script. Do it manually or use the<br></i>>><i> >> chkconfig tool.<br>
</i>>><i> >><br></i>>><i> >> klaus<br></i>>><i> >><br></i>>><i> >><br></i>>><i> >> On 24.10.2011 08:00, Uri Shacked wrote:<br></i>>><i> >><br></i>>><i> >>> hi again,<br>
</i>>><i> >>> i found out that on my centos 5.4 the command start-stop-daemon that<br></i>>><i> the<br></i>>><i> >>> /etc/init.d/kamailio uses is not recognized.<br></i>>><i> >>> it is kamailio3.2 any ideas?<br>
</i>>><i> >>><br></i>>><i> >>><br></i>>><i> >>> On Mon, Oct 24, 2011 at 3:03 PM, Uri Shacked <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">ushacked at gmail.com</a><br>
</i>>><i> >>> <mailto:<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">ushacked at gmail.com</a>>> wrote:<br></i>>><i> >>><br></i>>><i> >>> Hi,<br>
</i>>><i> >>> what is the best way to start kamailio at boot?<br></i>>><i> >>> the example in the install is not working for me....<br></i>>><i> >>><br></i>>><i> >>><br>
</i></div></div></blockquote></div></div></div><br></div><pre>This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at <a href="http://www.smilecoms.com/disclaimer" target="_blank">http://www.smilecoms.com/disclaimer</a>
</pre></blockquote></div><br></div>