[asterisk-dev] Beginner question - Opening project in kdevelop

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Mon Apr 30 06:44:42 MST 2007


On Monday 30 April 2007 9:27 am, Thiago Paiva Flores wrote:
> "Slackware is not currently supported, although an
> init script does exist for it. else echo We could not
> install init scripts for your distribution."

Generally those running Slackware create their own startup scripts, as it is  
a fairly bare-bones distribution.

This is my rc.asterisk script, which you may adapt:

#!/bin/bash

hw_start() {
	/sbin/modprobe zaptel
	/sbin/modprobe wct4xxp
	sleep 1
	/sbin/ztcfg
}

asterisk_start() {
	su - root -c '/usr/bin/screen -d -m /usr/sbin/asterisk -vvvgc'
}

hw_stop() {
	rmmod wct4xxp zaptel
	sleep 1
}

asterisk_stop() {
	/usr/sbin/asterisk -rx 'stop when convenient'
}

asterisk_stopnow() {
	/usr/sbin/asterisk -rx 'stop now'
}

############
### MAIN ###
############

case "$1" in
	'start')	# "start" brings up the hardware and starts asterisk
		hw_start
		asterisk_start
		;;
	'stop')	# "stop" takes down asterisk and the hardware
		asterisk_stop
		hw_stop
		;;
	'stopnow')	# "stop" takes down asterisk and does not wait nicely
		asterisk_stopnow
		hw_stop
		;;
	*)		# The default is to bring up all interfaces:
		hw_start
		asterisk_start
esac

> After running for a while. Seems like the problem is
> with the last comand (make config).
> When I run it alone I get the same message and when I
> the line without it there is no error message...

?  There is no make config.  Please read the documentation.

> I'm usind slackware 11. I just installed to work with
> asterisk, so if this is really a problem with
> slackware I could use some other distribution...

I have numerous Slackware installations.  I'm not knocking another Slacker, 
but what drew you to Slackware?  Your comments indicate that you are fairly 
new to Linux, and Slackware's not known for its friendliness nor ease of use 
for the uninitiated.



More information about the asterisk-dev mailing list