[OpenSIPS-Users] Opensips is not running

A. Njenga njengaamos at yahoo.com
Wed Dec 24 23:22:51 CET 2008


Have you checked the homedir of your script. If the pid_file is supposed to
go to the /var/run/opensips/ directory, and it is none existence (some
distros clear the /var/run directory on reboot) , you might need to change
the init script to check this and create it with the right permissions:


This is what I use for my Ubuntu server opensips installation to make this
happen, hope it helps

/etc/init.d/opensips

test -f $DAEMON || exit 0

# Load startup options if available
if [ -f $DEFAULTS ]; then
   . $DEFAULTS || true
fi

if [ "$RUN_OPENSIPS" != "yes" ]; then
    echo "OpenSIPS not yet configured. Edit /etc/default/opensips first."
    exit 0
fi

set -e

MEMORY=$((`echo $MEMORY | sed -e 's/[^0-9]//g'`))
[ -z "$USER" ]  && USER=opensips
[ -z "$GROUP" ] && GROUP=opensips
[ $MEMORY -le 0 ] && MEMORY=32

#Fix /var/run purge

if test ! -d $HOMEDIR ; then
        mkdir $HOMEDIR
        chown -R ${USER}:${GROUP} $HOMEDIR
fi






J Santos wrote:
> 
> Thank you Jeff,
>  
>  
> Yes I did. 
>  
> make prefix=/ all
> make prefix=/ install
>  
> and opensips ended up in 
>  
> /sbin/opensips
>  
> The weird thing is that on boot it says that it starts ok but when
> checking
> it is not running.
>  
> J Santos
>  
>  
>  
> 
>  
> 
> -----Original Message-----
> From: Jeff Pyle [mailto:jpyle at fidelityvoice.com] 
> Sent: Wednesday, December 24, 2008 9:40 AM
> To: J Santos; users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] Opensips is not running
> 
> 
> Did you compile OpenSIPS from source?  If so,
> oser=/usr/local/sbin/opensips.
> I believe that's the only change I made as well.
> 
> 
> - Jeff
> 
> 
> 
> 
> On 12/24/08 12:11 PM, "J Santos"  wrote:
> 
> 
> 
> Hello,
> 
>  
> I successfully installed opensips is a CentOS 64 bits. I borrowed the init
> script from Fedora changing only the oser=/sbin/opensips.
> 
> I've made small changes to the opensips.cfg  to enable mysql.
> 
> When I  
> 
> /etc/init.d/opensips start
> Starting opensips:                                         [  OK  ]
> 
> But if I 
> 
> /etc/init.d/opensips stop
> Stopping opensips:                                         [FAILED]
> or 
> 
> ps ax | grep opensips
>  8133 pts/3    S+     0:00 grep opensips
> When I 
> 
> opensipsctl start
> 
> INFO: Starting OpenSIPS : 
> 
> ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start
> failed
> There is no log file on var/log.
> 
> How can I check what's wrong ?
> 
> thanks
> 
> J Santos
> 
> 
>  
>  
>  
> 
> 
>   _____  
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.10.0/1862 - Release Date:
> 12/24/2008
> 11:49 AM
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Opensips-is-not-running-tp1773563p1791988.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081224/383b141d/attachment.htm 


More information about the Users mailing list