Toyima,
What I've done to deal with errors on a restart is to copy the config
to a temp, replace a couple things like fifo file and ports, start it
with foreground option, piping output to check for errors. The group
is backgrounded with and the init script waits for 2 sec. If bk
process is
Let me see if i understand,
If opensips has not started (ps -ef | grep opensips doesn't show any
opensips pid), how is possible that /etc/init.d/opensips returns [OK] when
you execute /etc/init.d/opensips restart...is this beacuse of mysql? is that
what you mean...this script should return 1 (not
On 06.06.2011 14:15, Toyima Dias wrote:
If opensips has not started (ps -ef | grep opensips doesn't show any
opensips pid), how is possible that /etc/init.d/opensips returns [OK]
when you execute /etc/init.d/opensips restart...is this beacuse of
mysql? is that what you mean...this script should
Ok, but it any case, the script should return 1 if opensips failed to
initialize; i'm thinking to build a HA infraestructure with opensips
(heartbeat, cluster glue...) and this opensips init script behavior
seems not to be appropriate; i will have to take a deeper look at
the opensips.init script
I have an HA setup with Pacemaker using heartbeat stack.
I created a script that monitors opensips via the pid file. Eventhough the
start event succeed and then opensips crash due to a module. The next
monitor round will report an error, and the resource would be migrated to
the next node.
I
Hi Toyima,
The start-stop-daemon function of the init script returns successfully when
launching OpenSIPS as long as your script is syntactically correct and a
pidfile can be created. You likely have an external resource (database
perhaps) that is required but not available (database
Hello,
I've a doubt regarding opensips.init script; it use to happend that
restarting opensips with:
/etc/init.d/opensips restart
It returns OK, but checking with ps -ef | grep opensips does not show
opensips running, by the way, checking the opensips.log shows many errors
for example that the