Debian startup script


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

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