Hi All, I've been thinking about taking steps to make my * server more reliable. In particular I'd like to have it automatically start * after a power loss. Can anyone here provide some guidance as to how to accomplish this. Keep in mind that I have a TDM400p that needs a couple of modprobe commands before I can start * itself. I had a look at the wiki but it seems light on this topic. Thanks, Michael -- Michael Graves mgraves@pixelpower.com Sr. Product Specialist www.pixelpower.com Pixel Power Inc. mgraves@mstvp.com o713-861-4005 o800-905-6412 c713-201-1262
On Wed, 2004-12-29 at 19:50 -0600, Michael Graves wrote:> Hi All, > > I've been thinking about taking steps to make my * server more > reliable. In particular I'd like to have it automatically start * after > a power loss. Can anyone here provide some guidance as to how to > accomplish this. Keep in mind that I have a TDM400p that needs a couple > of modprobe commands before I can start * itself. > > I had a look at the wiki but it seems light on this topic.Learn the unix or specific linux boot sequence for your distro. This is all very standard. Your lack of knowledge makes me guess Fedora Core. Look into the way your distro auto loads modules(covered recently on this list). Then study the /etc/init.d files and the /etc/rc.[12345s] directories. -- Steven Critchfield <critch@basesys.com>
On Thu, 2004-12-30 at 12:50, Michael Graves wrote:> Hi All, > > I've been thinking about taking steps to make my * server more > reliable. In particular I'd like to have it automatically start * after > a power loss. Can anyone here provide some guidance as to how to > accomplish this. Keep in mind that I have a TDM400p that needs a couple > of modprobe commands before I can start * itself. > > I had a look at the wiki but it seems light on this topic.There are some init scripts included in the asterisk source for various distributions... I rolled my own at the time because I didn't know there was one there. As part of mine I added the various insmod/rmmod/ztcfg commands. There are however usually distribution specific files/commands to automatically load modules at boot time. I think there might even be a make target in zaptel which will help with this from memory (make <ummm>) I dunno if any of this even makes sense, but I hope it helps... Regards, Adam
Here are some ideas Michael...this is what I've done with my box and it works just fine. Put into your /etc/rc.d/rc.local o /etc/rc.d/rc.modules file the following: Modprobe wcfxo Modprobe zaptel ztcfg safe_asterisk Give it a try! Sergio Veltri www.pointhorizon.com Tel: +5411-5217-1295 Cell: +54-911-5604-4149
> I've been thinking about taking steps to make my * server more > reliable. In particular I'd like to have it automatically start * after > a power loss. Can anyone here provide some guidance as to how to > accomplish this. Keep in mind that I have a TDM400p that needs a couple > of modprobe commands before I can start * itself.Did you do a 'make config' in the zaptel source, etc? That should have installed the startup scripts.
I know that several people have sent suggestions about init scripts, but, I use inittab to re spawn * sot to do a restart all I do is issue a "Stop Now" at the CLI. I am including my scripts and an excerpt of some of my system files. All tho, the suggestion about loading the modules in rc.local is pure gold. -- Christopher Dobbs Michael Graves wrote:>Hi All, > >I've been thinking about taking steps to make my * server more >reliable. In particular I'd like to have it automatically start * after >a power loss. Can anyone here provide some guidance as to how to >accomplish this. Keep in mind that I have a TDM400p that needs a couple >of modprobe commands before I can start * itself. > >I had a look at the wiki but it seems light on this topic. > >Thanks, > >Michael >-- >Michael Graves mgraves@pixelpower.com >Sr. Product Specialist www.pixelpower.com >Pixel Power Inc. mgraves@mstvp.com > >o713-861-4005 >o800-905-6412 >c713-201-1262 > > > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-------------- next part -------------- #! /bin/bash chvt 24 asterisk -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvc &> /dev/tty24 < /dev/tty24 sleep 5 -------------- next part -------------- #! /bin/bash asterisk -r -------------- next part -------------- ast:12345:respawn:/sbin/astmain -------------- next part -------------- pbx:x:0:0::/root:/sbin/astrun -------------- next part -------------- #! /bin/bash exec ssh pbx@pbx -------------- next part -------------- #! /bin/bash exec ssh root@pbx