[asterisk-users] Start asterisk on boot

2009-01-26 Thread Ralf Träskman
Hi

We runs asterisk 1.6 on a ubuntu 8.04 server.
How can I get asterisk to start at boot?
I have created an file named asterisk in /etc/event.d and put in this


   # This service maintains Asterisk from the point the system is
   # started until it is shut down again.

   description Asterisk daemon

   start on runlevel-2
   stop on shutdown

   respawn
   exec //usr/sbin/asterisk -f

But it doesn't work.

Regards
/ralf


Ralf Träskman, IT
AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden
Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60 99
r...@adlibris.commailto:r...@adlibris.com 
www.adlibris.comhttp://www.adlibris.com/
P Please consider the environment before printing this e-mail

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Start asterisk on boot

2009-01-26 Thread Stelios Koroneos

On Mon, 2009-01-26 at 09:32 +0100, Ralf Träskman wrote:
 Hi
 
  
 
 We runs asterisk 1.6 on a ubuntu 8.04 server.
 
 How can I get asterisk to start at boot?
 
 I have created an file named asterisk in /etc/event.d and put in this
 
  
 
 
# This service maintains Asterisk from the point the system is
# started until it is shut down again.
 
description Asterisk daemon
 
start on runlevel-2
stop on shutdown
 
respawn
exec //usr/sbin/asterisk –f
 
  
 
 But it doesn’t work.
 
  
 
 Regards
 
 /ralf 
 
  
 
 
 
 Ralf Träskman, IT
 AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden
 Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60
 99
 r...@adlibris.com www.adlibris.com 
 P Please consider the environment before printing this e-mail
 
  
 
 

I am using the /etc/init.d/asterisk startup file and works
Just make sure that permissions are set correctly.
The default asterisk package from ubuntu reps runs as non-root so if you
have installed it prior to installing 1.6 some things will be warped.



-- 
Stelios S. Koroneos

Digital OPSiS - Embedded Intelligence

Tel +30 210 9858296 Ext 100
Fax +30 210 9858298
http://www.digital-opsis.com


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Start asterisk on boot

2009-01-26 Thread Olivier
2009/1/26 Ralf Träskman r...@adlibris.com

  Hi



 We runs asterisk 1.6 on a ubuntu 8.04 server.

 How can I get asterisk to start at boot?

 I have created an file named asterisk in /etc/event.d and put in this




# This service maintains Asterisk from the point the system is
# started until it is shut down again.

description Asterisk daemon

start on runlevel-2
stop on shutdown

respawn
exec //usr/sbin/asterisk –f



 But it doesn't work.



 Regards

 /ralf




1. Copy relevant file from contrib directory into /etc/init.d directory
(while renaming it asterisk)
2. Then sudo update-rc.d asterisk defaults and it's done

 

 Ralf Träskman, IT
 AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden
 Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60 99
 r...@adlibris.com www.adlibris.com
 P *Please consider the environment before printing this e-mail*



 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Start asterisk on boot

2009-01-26 Thread Mustapha bayrouni
How did you installed asterisk?

2009/1/26 Ralf Träskman r...@adlibris.com:
 Hi



 We runs asterisk 1.6 on a ubuntu 8.04 server.

 How can I get asterisk to start at boot?

 I have created an file named asterisk in /etc/event.d and put in this



# This service maintains Asterisk from the point the system is
# started until it is shut down again.

description Asterisk daemon

start on runlevel-2
stop on shutdown

respawn
exec //usr/sbin/asterisk –f



 But it doesn't work.



 Regards

 /ralf



 

 Ralf Träskman, IT
 AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden
 Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60 99
 r...@adlibris.com www.adlibris.com
 P Please consider the environment before printing this e-mail



 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
مصطفى ب

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Start asterisk on boot

2009-01-26 Thread Tzafrir Cohen
On Mon, Jan 26, 2009 at 09:32:26AM +0100, Ralf Träskman wrote:
 Hi
 
 We runs asterisk 1.6 on a ubuntu 8.04 server.
 How can I get asterisk to start at boot?
 I have created an file named asterisk in /etc/event.d and put in this
 
 
# This service maintains Asterisk from the point the system is
# started until it is shut down again.
 
description Asterisk daemon
 
start on runlevel-2
stop on shutdown
 
respawn
exec //usr/sbin/asterisk -f


  exec /usr/sbin/asterisk -U asterisk 

please.

How do you intend to stop it?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Start asterisk on boot

2009-01-26 Thread Ralf Träskman
Hi

That didnt work either, do i have to set some permissions?

/ralf

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Olivier
Sent: den 26 januari 2009 09:52
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Start asterisk on boot


2009/1/26 Ralf Träskman r...@adlibris.commailto:r...@adlibris.com

Hi



We runs asterisk 1.6 on a ubuntu 8.04 server.

How can I get asterisk to start at boot?

I have created an file named asterisk in /etc/event.d and put in this



   # This service maintains Asterisk from the point the system is
   # started until it is shut down again.

   description Asterisk daemon

   start on runlevel-2
   stop on shutdown

   respawn
   exec //usr/sbin/asterisk -f



But it doesn't work.



Regards

/ralf



1. Copy relevant file from contrib directory into /etc/init.d directory (while 
renaming it asterisk)
2. Then sudo update-rc.d asterisk defaults and it's done



Ralf Träskman, IT
AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden
Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60 99
r...@adlibris.commailto:r...@adlibris.com 
www.adlibris.comhttp://www.adlibris.com/
P Please consider the environment before printing this e-mail



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Start asterisk on boot

2009-01-26 Thread David fire
2009/1/26 Ralf Träskman r...@adlibris.com

  Hi



 We runs asterisk 1.6 on a ubuntu 8.04 server.

 How can I get asterisk to start at boot?

 I have created an file named asterisk in /etc/event.d and put in this




# This service maintains Asterisk from the point the system is
# started until it is shut down again.

description Asterisk daemon

start on runlevel-2
stop on shutdown

respawn
exec //usr/sbin/asterisk –f



 But it doesn't work.



 Regards

 /ralf



 

 Ralf Träskman, IT
 AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden
 Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60 99
 r...@adlibris.com www.adlibris.com
 P *Please consider the environment before printing this e-mail*



 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



go to the source directory
where you did ./configure
make
make install
and run make config
this will make all the start/stop scripts for you.
David
-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users