Hello, I am running a SuSe 9.3 server. That have Asterisk. Asterisk are working fine/perfect. But what I want to do is to make it start up at boot.
When I have started the computer can I type:
sudo /root/Asterisk-1.0.8/Asterisk
And it goes of. No problem.
But I want it to do that by itself at start up. And as easy as possible so my first thoug was why not put in a script in: /etc/init.d/boot.local?
There did I write:
sudo /root/asterisk-1.0.8/Asterisk
rootpasswd
That dident work as I did think. The Asterisk was succesfully run but it dident manged to get out to the network. Because it had been exicuted before the network card was loadet. So I had to restart Asterisk and then did it work. But I dident work at startup.
I have been trying to place the script in the different placed as rc3.d that loads with the nettwork card and as S99Asterisk so it loads last. But it dosent work. Maybe bacause it do only write this:
sudo /root/asterisk-1.0.8/Asterisk
rootpasswd
But I dont know how to write a good boot script. If someone could help me out here. Would I be extremly happy.
Thanks for taking your time reading this.
NB: I know I have to many spelling errors.