Jeff Ramsey
2005-May-05 17:00 UTC
[Asterisk-Users] Asterisk on Fedora Core 2 startup script
I need an rc script that will autorun the module for the wctdm and then follow that by running asterisk. A first look at google tells me to try this list. Thanks, -- Jeff Ramsey
Colin Anderson
2005-May-05 18:47 UTC
[Asterisk-Users] Asterisk on Fedora Core 2 startup script
I like easy questions! Add to /etc/rc.d: modprobe wctdm ztcfg -vv su <yourasteriskuser> /usr/sbin/safe_asterisk & where <yourasteriskuser> is the user that you normally run Asterisk under. Omit the su <yourasteriskuser> if you are running Asterisk as root. safe_asterisk is a watchdog script that restarts Asterisk if it craps out. The & Ampersand runs it as a background process, returning control to the tty and allowing you to log into the console. hth -----Original Message----- From: Jeff Ramsey To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: 5/5/2005 6:00 PM Subject: [Asterisk-Users] Asterisk on Fedora Core 2 startup script I need an rc script that will autorun the module for the wctdm and then follow that by running asterisk. A first look at google tells me to try this list. Thanks, -- Jeff Ramsey _______________________________________________ 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
Greg Boehnlein
2005-May-05 19:17 UTC
[Asterisk-Users] Asterisk on Fedora Core 2 startup script
On Thu, 5 May 2005, Colin Anderson wrote:> I like easy questions! > > Add to /etc/rc.d: > > modprobe wctdm > ztcfg -vv > su <yourasteriskuser> /usr/sbin/safe_asterisk & > > where <yourasteriskuser> is the user that you normally run Asterisk under. > Omit the su <yourasteriskuser> if you are running Asterisk as root. > safe_asterisk is a watchdog script that restarts Asterisk if it craps out. > The & Ampersand runs it as a background process, returning control to the > tty and allowing you to log into the console.Or, you could just use the pre-existing scripts: /usr/src/zaptel/zaptel.init and /usr/src/asterisk/contrib/init.d/rc.redhat.asterisk They work. -- Vice President of N2Net, a New Age Consulting Service, Inc. Company http://www.n2net.net Where everything clicks into place! KP-216-121-ST
Rich Adamson
2005-May-05 20:14 UTC
[Asterisk-Users] Asterisk on Fedora Core 2 startup script
> I need an rc script that will autorun the module for the wctdm and then > follow that by running asterisk. A first look at google tells me to try this > list.Take a look at 'make config' in both the zaptel and asterisk src directories. It should install the scripting necessary.
Ezio Vernacotola
2005-May-29 01:59 UTC
[Asterisk-Users] Asterisk on Fedora Core 2 startup script
Greg,
I was never able to automatically restart asterisk in fedora core 2
using asterisk/contrib/init.d/rc.redhat.asterisk.
I don't know if this happens only to me.
# make config
# /etc/rc.d/init.d/asterisk start
# kill -11 `cat /var/run/asterisk.pid`
asterisk doesn't restart.
I have to take off "daemon" from cmd line to make it work
--- /etc/rc.d/init.d/asterisk 2005-05-29 10:48:02.298929139 +0200
+++ /etc/rc.d/init.d/asterisk.new 2005-05-26 23:07:36.000000000 +0200
@@ -52,7 +52,11 @@
if [ $AST_GROUP ] ; then
ASTARGS="`echo $ASTARGS` -G $AST_GROUP"
fi
- daemon $DAEMON $ASTARGS
+ #daemon $DAEMON $ASTARGS
+ base=asterisk
+ echo -n " $base"
+ $DAEMON $ASTARGS
+ [ "$?" -eq 0 ] && success $"$base startup"
|| failure $"$base
startup"
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/asterisk
echo
Ezio Vernacotola