RE: [Asterisk-Users] Auto Start

2003-10-19 Thread David J Carter
Thanks all for the replies.

I now * starting when the machine reboots without any user intervention
required.

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rich Adamson
Sent: 19 October 2003 03:48
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Auto Start

 I now have only ./safe_asterisk in my rc.local file.


Another way to start/monitor * is to put this in /etc/inittab:

# Run asterisk in runlevels 2-5
A1:2345:respawn:/usr/sbin/safe_asterisk

If * dies for any reason, its automatically restarted within about
five minutes. (It also causes messages such as:
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Remote UNIX connection
-- Remote UNIX connection disconnected
to be reported on the CLI and log files, cluttering both. Doesn't
seem to impact actual connections, etc, though.)

Rich


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Auto Start

2003-10-18 Thread David J Carter


Hi all,

Is there any way to get * to start when linux boots?
I am running Red Hat 8.0, but a remote site I am testing IAX with has power
problems and the server there keeps re-booting, would be nice if everything
started up again automatically.
I noticed this in the list the other day,

I suggest people download and install dameontools

http://cr.yp.to/daemontools.html

and have asterisk as a supervised service.

If it fails, supervise will restart it after 5 seconds.

Regards...Martin

Would this do the trick, or is this just when the system has already been
run.

Thanks in advance.
Dave

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Auto Start

2003-10-18 Thread WipeOut
David J Carter wrote:

Hi all,

Is there any way to get * to start when linux boots?
I am running Red Hat 8.0, but a remote site I am testing IAX with has power
problems and the server there keeps re-booting, would be nice if everything
started up again automatically.
I noticed this in the list the other day,
I suggest people download and install dameontools

http://cr.yp.to/daemontools.html

and have asterisk as a supervised service.

If it fails, supervise will restart it after 5 seconds.

Regards...Martin

Would this do the trick, or is this just when the system has already been
run.
Thanks in advance.
Dave
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
 

For RedHat there is an init script provided for the zaptel drivers, and 
then you can just add safe_asterisk to your startup script..

This setup has worked well for me..

Later..

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Auto Start

2003-10-18 Thread David J Carter
Cheers,

Do I add the safe_asterisk to the rc.local file?

You may tell I am new to Linux.

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of WipeOut
Sent: 18 October 2003 10:40
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Auto Start

David J Carter wrote:

Hi all,

Is there any way to get * to start when linux boots?
I am running Red Hat 8.0, but a remote site I am testing IAX with has power
problems and the server there keeps re-booting, would be nice if everything
started up again automatically.
I noticed this in the list the other day,

I suggest people download and install dameontools

http://cr.yp.to/daemontools.html

and have asterisk as a supervised service.

If it fails, supervise will restart it after 5 seconds.

Regards...Martin

Would this do the trick, or is this just when the system has already been
run.

Thanks in advance.
Dave

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users



For RedHat there is an init script provided for the zaptel drivers, and
then you can just add safe_asterisk to your startup script..

This setup has worked well for me..

Later..

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Auto Start

2003-10-18 Thread WipeOut
David J Carter wrote:

Cheers,

Do I add the safe_asterisk to the rc.local file?

You may tell I am new to Linux.

Dave

 

Yes, rc.local should do it for you..

Don't worry about being new to Linux, I have been using it for a few 
years and I am still learning, I still think I am a newbie.. :)

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Auto Start

2003-10-18 Thread David J Carter
I have put ./var/sbin/safe_asterisk in the rc.local file but it still
doesn't start.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of WipeOut
Sent: 18 October 2003 11:31
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Auto Start

David J Carter wrote:

Cheers,

Do I add the safe_asterisk to the rc.local file?

You may tell I am new to Linux.

Dave



Yes, rc.local should do it for you..

Don't worry about being new to Linux, I have been using it for a few
years and I am still learning, I still think I am a newbie.. :)

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Auto Start

2003-10-18 Thread WipeOut
David J Carter wrote:

I have put ./var/sbin/safe_asterisk in the rc.local file but it still
doesn't start.
 

Have you got the zaptel drivers loading at startup?

This can either be done by using modprobe commands in the rc.local or by 
using the init script that comes with the zaptel source.. just run make 
config from /usr/src/zaptel (AFAIK only for redhat)..

Later..

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Auto Start

2003-10-18 Thread David J Carter
Yup,

I did modprobe when I loaded everything. If I issue the reboot command then
I see the zaptel being unloaded.

Dave
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of WipeOut
Sent: 18 October 2003 12:11
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Auto Start

David J Carter wrote:

I have put ./var/sbin/safe_asterisk in the rc.local file but it still
doesn't start.



Have you got the zaptel drivers loading at startup?

This can either be done by using modprobe commands in the rc.local or by
using the init script that comes with the zaptel source.. just run make
config from /usr/src/zaptel (AFAIK only for redhat)..

Later..

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Auto Start

2003-10-18 Thread David J Carter
Hi,
Just back from the Rugby match, (we won), and am now trying again to get
asterisk to auto start without being there when the server reboots.

Wipe Out asked:
Have you got the zaptel drivers loading at startup?

This can either be done by using modprobe commands in the rc.local or by
using the init script that comes with the zaptel source.. just run make
config from /usr/src/zaptel (AFAIK only for redhat)..

I can see them unload when I issue the reboot command.

Just before the Logon prompt appears on boot I see a message but it goes
before I can read it and the prompt to logon appears.

If I scroll back up the screen the message is not there.

I now have only ./safe_asterisk in my rc.local file.

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of WipeOut
Sent: 18 October 2003 12:11
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Auto Start

David J Carter wrote:

I have put ./var/sbin/safe_asterisk in the rc.local file but it still
doesn't start.



Have you got the zaptel drivers loading at startup?

This can either be done by using modprobe commands in the rc.local or by
using the init script that comes with the zaptel source.. just run make
config from /usr/src/zaptel (AFAIK only for redhat)..

Later..

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Auto Start

2003-10-18 Thread Paul Liew
Dave,

After the system boots up, you check to see which modules are loaded by
doing a lsmod. zaptel and others that you need should be listed. If not
you can manually add modprobe zaptel and the other drivers into your
rc.local file.

Paul

 Just before the Logon prompt appears on boot I see a message but it goes
 before I can read it and the prompt to logon appears.

 If I scroll back up the screen the message is not there.

 I now have only ./safe_asterisk in my rc.local file.

 Dave



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Auto Start

2003-10-18 Thread Rich Adamson
 I now have only ./safe_asterisk in my rc.local file.
 

Another way to start/monitor * is to put this in /etc/inittab:

# Run asterisk in runlevels 2-5
A1:2345:respawn:/usr/sbin/safe_asterisk

If * dies for any reason, its automatically restarted within about
five minutes. (It also causes messages such as:
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Remote UNIX connection
-- Remote UNIX connection disconnected
to be reported on the CLI and log files, cluttering both. Doesn't
seem to impact actual connections, etc, though.)

Rich


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users