[OpenSIPS-Users] /etc/init.d/opensips restart returns OK when opensips is down...

Andrew Pogrebennyk andrew.pogrebennyk at portaone.com
Mon Jun 6 15:41:24 CEST 2011


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 return 1 (not
> succesfull, different than 0) it no pid file has been created, am i right?

Correct, but there can be a case when opensips starts but then some 
module's initialization function fails due to mysql connect error or 
incompatible table version and the opensips will exit.

-- 
Sincerely,
Andrew Pogrebennyk



More information about the Users mailing list