[OpenSIPS-Users] Opensips pid problem

James Mbuthia jmmbuthia at gmail.com
Tue Sep 21 12:31:21 CEST 2010


truth be told am not sure what the problem was. Like I mentioned before,
there afew steps on the website which weren't mentioned on the book i.e.

vim /etc/default/opensips
RUN_OPENSIPS=yes

   1. User to run as

USER=opensips

   1. Group to run as

GROUP=opensips

   1. Amount of memory to allocate for the running OpenSIPS server (in Mb)

MEMORY=128

Change also the file /etc/init.d/opensips:

vim /etc/init.d/opensips

Replace the line DAEMON=/usr/sbin/opensips to:
DAEMON=/usr/local/sbin/opensips

Give execution permission to the file:
chmod +x /etc/init.d/opensips

create the opensips user:
adduser opensips

Now create the dir:
mkdir /var/run/opensips

vim /usr/local/etc/opensips/opensipsctlrc
PID_FILE=/var/run/opensips/opensips.pid


I think that the last couple of steps were what made the difference because
I kept on getting the 'opensips_pid file is missing' error when trying to
start/shut down opensips

On Tue, Sep 21, 2010 at 10:57 AM, Bogdan-Andrei Iancu <
bogdan at voice-system.ro> wrote:

> out of curiosity, what was the problem ?
>
> Regards,
> Bogdan
>
> James Mbuthia wrote:
> > Hi Bogdan,
> >
> > Thanks for your reply.
> >
> >
> >  I got it to work by following the instructions
> > on http://www.voip-info.org/wiki/view/Opensips+Installation,+How+to.
>  I've
> > been using the book, 'Building telephony systems with opensips'
> > however the installation procedure set out in the book seems to miss
> > out some key steps. e.g. The installation procedure on the above
> > website seems to be more accurate and will hopefully save people alot
> > of time and headache.
> >
> > james
> >
> >
> > On Tue, Sep 21, 2010 at 10:42 AM, Bogdan-Andrei Iancu
> > <bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>> wrote:
> >
> >     Hi James,
> >
> >     Your opensips fails to start (see the signal 2 (INT) received by
> >     opensips).
> >
> >     It is strange as no ERROR is printed.....Please set debug=6 and try
> to
> >     start again - and post the whole output here.
> >
> >     Regards,
> >     Bogdan
> >
> >     James Mbuthia wrote:
> >     > Hi,
> >     >
> >     > Am trying to setup opensips on a centos system and I keep  on
> >     running
> >     > to the same problem and i have run out of ideas. I get the
> following
> >     > error when trying to start opensips.
> >     >
> >     > ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS
> >     start
> >     > failed
> >     >
> >     >
> >     >  When i do a tail /var/log/messages I get the following :
> >     >
> >     >
> >     > Sep 20 15:52:22 CL-T020-483CL opensips: INFO:acc:mod_init:
> >     initializing...
> >     > Sep 20 15:52:22 CL-T020-483CL opensips: INFO:auth:mod_init:
> >     > initializing...
> >     > Sep 20 15:52:22 CL-T020-483CL opensips: INFO:auth_db:mod_init:
> >     > initializing...
> >     > Sep 20 15:52:22 CL-T020-483CL opensips:
> >     > INFO:core:probe_max_receive_buffer: using a UDP receive buffer
> >     of 255 kb
> >     > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:sig_usr: signal 2
> >     > received
> >     > Sep 20 16:13:14 CL-T020-483CL last message repeated 2 times
> >     > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:handle_sigs:
> child
> >     > process 5856 exited normally, status=0
> >     > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:handle_sigs:
> child
> >     > process 5857 exited normally, status=0
> >     > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:handle_sigs:
> >     > terminating due to SIGCHLD
> >     > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:sig_usr: signal
> 15
> >     > received
> >     >
> >     >
> >     > Does anyone have a clue of whats happening and what I need to do?
> >     >
> >     > regards,
> >     > James
> >     >
> >
> ------------------------------------------------------------------------
> >     >
> >     > _______________________________________________
> >     > Users mailing list
> >     > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> >     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >     >
> >
> >
> >     --
> >     Bogdan-Andrei Iancu
> >     OpenSIPS Bootcamp
> >     15 - 19 November 2010, Edison, New Jersey, USA
> >     www.voice-system.ro <http://www.voice-system.ro>
> >
> >
> >     _______________________________________________
> >     Users mailing list
> >     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> >     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Bootcamp
> 15 - 19 November 2010, Edison, New Jersey, USA
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100921/420b4696/attachment.htm 


More information about the Users mailing list