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:
<br>
This is what I use for my Ubuntu server opensips installation to make this happen, hope it helps
<p>
/etc/init.d/opensips
<p>
<i>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
</i>
<p>
<blockquote class="quote light-black dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">J Santos wrote:</div>
<div class="quote-message">
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@fidelityvoice.com]
Sent: Wednesday, December 24, 2008 9:40 AM
To: J Santos; users@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" <jsantos5954@gmail.com> 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@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
</div>
</div></blockquote>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Opensips-is-not-running-tp1773563p1791988.html">Re: Opensips is not running</a><br>
Sent from the <a href="http://n2.nabble.com/OpenSIPS---Users-f1449235.html">OpenSIPS - Users mailing list archive</a> at Nabble.com.<br>