Debian startup script

Hello,

I am new to debian (bfore I used redHat)

How can I add FreePBX that it starts automatically with system start ?

Thnaks and best regards

Niels

http://www.squishychicken.com/index.php?option=com_content&task=view&id=13&Itemid=2
bottom of page

build an rc.local startup script

echo ‘#!/bin/bash’ > /etc/init.d/local
chmod +x /etc/init.d/local
update-rc.d local defaults 80

echo ‘/usr/local/sbin/astmanproxy’ >> /etc/init.d/local

change the user that astmanproxy runs as

perl -p -i -e ‘s/proc_user.$/proc_user = asterisk/’ /etc/asterisk/astmanproxy.conf
perl -p -i -e 's/proc_group.
$/proc_group = asterisk/’ /etc/asterisk/astmanproxy.conf

change permissions and start amp

amportal chown
amportal start