SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dghundtOffline



Joined: Oct 16, 2005
Posts: 162

Status: Offline
Posted: Nov 23, 2005 - 01:51 AM Reply with quote Back to top
How do I put asterisk into the init.d file such that it starts when I boot up the computer. I use ubuntu which has debian base.

thanks!
View user's profile Send private message
websmythOffline



Joined: Apr 16, 2005
Posts: 75
Location: Northwood, IA USA
Status: Offline
Posted: Nov 23, 2005 - 02:29 AM Reply with quote Back to top
dghundt :
How do I put asterisk into the init.d file such that it starts when I boot up the computer. I use ubuntu which has debian base.

thanks!


Not sure if ubuntu is 'that'close to debian but look
in:
~# ls /usr/src/asterisk/contrib/init.d/
CVS/
rc.gentoo.asterisk*
rc.mandrake.zaptel
rc.slackware.asterisk
rc.debian.asterisk
rc.mandrake.asterisk
rc.redhat.asterisk*

That rc.debian.asterisk might be what you want.

Brett
View user's profile Send private message
dghundtOffline



Joined: Oct 16, 2005
Posts: 162

Status: Offline
Posted: Nov 23, 2005 - 03:36 AM Reply with quote Back to top
thanks

but im not sure what to do with the line you typed in.
can you give me a few more details?
View user's profile Send private message
websmythOffline



Joined: Apr 16, 2005
Posts: 75
Location: Northwood, IA USA
Status: Offline
Posted: Nov 23, 2005 - 07:05 PM Reply with quote Back to top
Sorry dghundt - thought you might know a bit more
about your installation of Linux than I do.

In the directory /usr/src/asterisk/contrib/init.d/
there are a bunch of init.d scripts for the different
distros of Linux.

One is called rc.debian.asterisk. It should look a
lot like the other files in your /etc/rc.d/init.d/
(I think) directory. Check it manually (eyeball) and
then copy it there - probably renaming it to something
like rc.asterisk. You will probably have to
chmod 755 rc.asterisk to let it run from the boot up.

I really don't know how ubuntu calls the extra/misc
init.d scripts during boot. If it is one of those
numbered type thingies (tech-term) I really don't
know what you should call the file. I have Slackware
and I just throw it into rc.local.

Brett
View user's profile Send private message
snantelOffline



Joined: Apr 08, 2008
Posts: 2

Status: Offline
Posted: Apr 08, 2008 - 03:17 PM Reply with quote Back to top
I'm not an expert of linux but what I did on mine is.
Running Ubuntu 7.10
create a file in /etc/init.d/asterisk
/usr/sbin/asterisk

And to add it to your boot config

cd /etc/init.d
update-rc.d asterisk defaults
View user's profile Send private message
snantelOffline



Joined: Apr 08, 2008
Posts: 2

Status: Offline
Posted: Apr 08, 2008 - 04:07 PM Reply with quote Back to top
I tested the debian script on my Ubuntu 7.10 and it work.

copy /mytemp/asterisk-1.4.19/contrib/init.d/rc.debian.asterisk
to /etc/init.d/asterisk
chmod 755 /etc/init.d/asterisk

cd /etc/init.d
# to remove the script from boot
update-rc.d -f asterisk remove

# to set the script as boot
update-rc.d asterisk defaults
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.