Start Asterisk at boot?

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Start Asterisk at boot?
# 1  
Old 12-14-2006
Start Asterisk at boot?

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. Smilie

Thanks for taking your time reading this.
NB: I know I have to many spelling errors.
# 2  
Old 12-20-2006
this is cause you don't need launch asterisk with sudo when you boot up your pc

cause in startup your id is 0 so only execute asterisk

in your boot.local put it
./way/to/asterisk
# 3  
Old 12-21-2006
Right I have done that. It are starting up. But not with the nettwork.
So I cant use it. It are running but not on the nettwork because the nettwork drive hasent been loadet yet. I need to run asterisk after the nettwork driver
# 4  
Old 12-21-2006
hello,

i think best for you to start it in rc.local,

cheers.
# 5  
Old 12-21-2006
humm

is a better ideia put in rc.local

but i never used suse so i don't know if this exist ;P

if not try to find the line where your network driver is loaded and put
the ./way/to/asterisk in the next line
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Red Hat

iptables does not start on boot

Hello, I have an issue with iptables. The rules are already configured in /etc/sysconfig/iptables but when i reboot the node the service is not running or at least i can't see my rules. Below the configuration i did to start the service during boot. # chkconfig --list iptables iptables... (1 Reply)
Discussion started by: @dagio
1 Replies

3. UNIX for Dummies Questions & Answers

Webmin dont want to start at boot

Hello, after webmin install, it was running, but after reboot, i need webmin to start automatically. I need this to be done without editting anything in webmin mysql (setting it from webmin admin area). So i tried chkconfig webmin on and added startup script to rc.local but still dont works..... (1 Reply)
Discussion started by: postcd
1 Replies

4. Red Hat

NFS does not start during boot process

Hello, I am facing some issues during boot process of rhel 6.2 It takes too long time (~10 min) for the node to come up... The boot process stuck while it trying to start NFS and does not continue until timeout. In the boot.log file i see Starting NFS quotas: Cannot register service:... (2 Replies)
Discussion started by: @dagio
2 Replies

5. HP-UX

HP UX start process at boot time

When I get start program at boot I read which run level /sbin/rcx.d runlevel=0.....x only read directory which directory name has UpperCase 'S' is not enough someone says that I need to reference another file which file I need to reference 1)/etc/rc.config.d/all file which parameter... (4 Replies)
Discussion started by: alert0919
4 Replies

6. SuSE

How to start Apache2 and vsftpd at boot

My apache and ftp server is working fine but when I reboot the system ftp and web server is not running automatically. Please advise on how to start apache and ftp at boot. (9 Replies)
Discussion started by: real-chess
9 Replies

7. Solaris

nfsd won't start at boot up

Hi Inexplicably, nfsd no longer starts automatically on our Sun boxes running Solaris 9, so that 'automount' no longer functions automatically. The problem first manifested itself when we could not access files on any of the nfs automounted directories in our LAN after one of the servers (say... (19 Replies)
Discussion started by: dcshungu
19 Replies

8. UNIX for Advanced & Expert Users

start a process at boot up time

Hi, I have a program that check the IP address and automatic update it to the DNS server. I would like to run this program when the computer bootup after pppd get a connection. How do I add it to the init file. Does any one have any information of how to do it. I run a Linux Mandrake as a... (1 Reply)
Discussion started by: vtran4270
1 Replies

9. UNIX for Dummies Questions & Answers

To start login/programms on boot up

Dears, I m using SCO V and running 3 different aplications (has different logins) constantly on the server console in 3 different screens. I want to develop a script which can start the programms on booting the systems. OR If automatic login can be configured on different screens will help me... (1 Reply)
Discussion started by: skant
1 Replies
Login or Register to Ask a Question