On Wed, Aug 8, 2012 at 12:13 PM, JR Richardson jmr.richardson@gmail.com wrote:
Hi All,
I'm running redundant kamailio 3.0.4 servers in production, have been for a long time with great success. They were installed on debian Lenny. One of my servers crashed. I can't seem to do a debian lennyy install because that version is archived now. I'm trying to install on debian squeeze but still using kamailio 3.0.4 for compatibility reasons. The install went pretty normal except during boot up, kamailio starts before mysql and networking so it starts then exists.
Once the server is fully booted, kamailio starts with the init script without error.
I have adjusted the init script to check for networking and mysql to start first and performed an 'update-rc.d kamailio defaults' but still no luck.
Any help will be appreciated.
Thanks.
JR
JR Richardson Engineering for the Masses
Yep, this is an http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot issue. Thanks Alex.
The old init scrip that ships with Kamailio 3.0.4 that I am using is not 100% compatible so I pulled a hack out of the hat and inserted 'sleep 20' before of 'check_fork ()' in the kamailio init script.
Kamailio now waits long enough for all services to start before launching, simple but effective.
Thanks.
JR
On 08/08/2012 01:34 PM, JR Richardson wrote:
The old init scrip that ships with Kamailio 3.0.4 that I am using is not 100% compatible so I pulled a hack out of the hat and inserted 'sleep 20' before of 'check_fork ()' in the kamailio init script.
Kamailio now waits long enough for all services to start before launching, simple but effective.
Ah, my preferred solution. :-)
Hi. Another solution is to change priority in /etc/rc2.d/ I think it's more correct, because if you change kamailio ini script - after update you will need to change /etc/init.d/kamailio script manually
On Wed, Aug 8, 2012 at 9:36 PM, Alex Balashov abalashov@evaristesys.comwrote:
On 08/08/2012 01:34 PM, JR Richardson wrote:
The old init scrip that ships with Kamailio 3.0.4 that I am using is
not 100% compatible so I pulled a hack out of the hat and inserted 'sleep 20' before of 'check_fork ()' in the kamailio init script.
Kamailio now waits long enough for all services to start before launching, simple but effective.
Ah, my preferred solution. :-)
-- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
______________________________**_________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Not in dependency-based boot sequencing. :-)
On 08/08/2012 01:49 PM, Pavel Klochan wrote:
Hi. Another solution is to change priority in /etc/rc2.d/ I think it's more correct, because if you change kamailio ini script - after update you will need to change /etc/init.d/kamailio script manually
On Wed, Aug 8, 2012 at 9:36 PM, Alex Balashov <abalashov@evaristesys.com mailto:abalashov@evaristesys.com> wrote:
On 08/08/2012 01:34 PM, JR Richardson wrote: The old init scrip that ships with Kamailio 3.0.4 that I am using is not 100% compatible so I pulled a hack out of the hat and inserted 'sleep 20' before of 'check_fork ()' in the kamailio init script. Kamailio now waits long enough for all services to start before launching, simple but effective. Ah, my preferred solution. :-) -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ _________________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Wed, Aug 8, 2012 at 12:34 PM, JR Richardson jmr.richardson@gmail.com wrote:
On Wed, Aug 8, 2012 at 12:13 PM, JR Richardson jmr.richardson@gmail.com wrote:
Hi All,
I'm running redundant kamailio 3.0.4 servers in production, have been for a long time with great success. They were installed on debian Lenny. One of my servers crashed. I can't seem to do a debian lennyy install because that version is archived now. I'm trying to install on debian squeeze but still using kamailio 3.0.4 for compatibility reasons. The install went pretty normal except during boot up, kamailio starts before mysql and networking so it starts then exists.
Once the server is fully booted, kamailio starts with the init script without error.
I have adjusted the init script to check for networking and mysql to start first and performed an 'update-rc.d kamailio defaults' but still no luck.
Any help will be appreciated.
Thanks.
JR
JR Richardson Engineering for the Masses
Yep, this is an http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot issue. Thanks Alex.
The old init scrip that ships with Kamailio 3.0.4 that I am using is not 100% compatible so I pulled a hack out of the hat and inserted 'sleep 20' before of 'check_fork ()' in the kamailio init script.
Kamailio now waits long enough for all services to start before launching, simple but effective.
After digging in a bit more, reading the directions and such. When you copy over the init script and run 'update-rd.d kamailio defaults', this doesn't actually do anything in Debian Squeeze. The new LSB init scripts use the 'insserv' command to set init priorities. Proper steps are such: Copy over squeeze init script to /etc/ini.d/kamailio Edit /etc/init.d/kamailio Add 'mysql' to 'Required-Start:' line ----snip----- ### BEGIN INIT INFO # Provides: kamailio # Required-Start: $syslog $network $local_fs $time mysql # Required-Stop: $syslog $network $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start the Kamailio SIP proxy server # Description: Start the Kamailio SIP proxy server ### END INIT INFO ----end snip------- Then run 'insserv kamailio' Check /etc/rc2.d/ and you will see kamailio set to start after mysql.
That did it for me, I took out the 'sleep 20' from my previous post.
Hope this helps
JR