Re: not everything coming up on a reboot

2006-12-23 Thread Christian Walther

Hello Mike,

do you have ppp_enable=YES in your /etc/rc.conf?
If you never configured /etc/rc.conf to start ppp on boot, you should
take a look at /etc/defaults/rc.conf to see what options are
available, and what options apply to your setup.

HTH
Christian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Michael P. Soulier

On 12/23/06, Christian Walther [EMAIL PROTECTED] wrote:

Hello Mike,

do you have ppp_enable=YES in your /etc/rc.conf?
If you never configured /etc/rc.conf to start ppp on boot, you should
take a look at /etc/defaults/rc.conf to see what options are
available, and what options apply to your setup.


As I said, the ppp-user script brings it up fine. It would not if I
did not have rc.conf configured properly.

[EMAIL PROTECTED] ~]# grep ppp /etc/rc.conf
ppp_enable=YES
ppp_mode=ddial
#ppp_nat=YES # if you want to enable nat for your local network, otherwise NO
ppp_profile=storm

It still doesn't come up at boot.

Thanks,
Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Beech Rintoul
On Saturday 23 December 2006 11:48, Michael P. Soulier wrote:
 Hello,

 I had to reboot recently (a truly rare event), and I found that my
 PPPoE connection didn't come back up automatically. Quite disturbing
 if I happen to be away from the house and a power failure lasts longer
 than my UPS.

 After boot, if I run /etc/rc.d/ppp-user start, it comes up
 perfectly, using my settings in /etc/rc.conf. So, why wouldn't it come
 up at boot? I thought that every initscript was passed a start
 argument.

 I can't find a log of an attempt at all.

Do you have ppp-user_enable=yes in your /etc/rc.conf?

Beech

-- 
---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---











___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Michael P. Soulier

On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote:

Do you have ppp-user_enable=yes in your /etc/rc.conf?


No, and looking at ppp-user, I don't see why I'd need one. I have
ppp_enable=YES.


# PROVIDE: ppp-user
# REQUIRE: netif isdnd
# KEYWORD: nojail

. /etc/rc.subr

name=ppp
rcvar=ppp_enable
start_cmd=ppp_start
stop_cmd=:

Now, I do notice that the stock script comes with a REQUIRE isdnd as
well as netif. As I'm not running isdn, would that stop rc from
bringing the script up, or are REQUIREs OR'd and not AND'd?

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Beech Rintoul
On Saturday 23 December 2006 12:36, Michael P. Soulier wrote:
 On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote:
  Do you have ppp-user_enable=yes in your /etc/rc.conf?

 No, and looking at ppp-user, I don't see why I'd need one. I have
 ppp_enable=YES.


 # PROVIDE: ppp-user
 # REQUIRE: netif isdnd
 # KEYWORD: nojail

 . /etc/rc.subr

 name=ppp
 rcvar=ppp_enable
 start_cmd=ppp_start
 stop_cmd=:

 Now, I do notice that the stock script comes with a REQUIRE isdnd as
 well as netif. As I'm not running isdn, would that stop rc from
 bringing the script up, or are REQUIREs OR'd and not AND'd?

I'm not sure. I read the man pages and find them somewhat obscure. I maintain 
several ports and generally I just go with the stock script that comes with 
the port. You might want to ask this question on freebsd-ports@ you're more 
likely to get an answer from someone who understands rc.d scripts.

Beech

-- 
---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---













pgpptq3fB5tOn.pgp
Description: PGP signature


Re: not everything coming up on a reboot

2006-12-23 Thread Beech Rintoul
On Saturday 23 December 2006 12:36, Michael P. Soulier wrote:
 On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote:
  Do you have ppp-user_enable=yes in your /etc/rc.conf?

 No, and looking at ppp-user, I don't see why I'd need one. I have
 ppp_enable=YES.


 # PROVIDE: ppp-user
 # REQUIRE: netif isdnd
 # KEYWORD: nojail

 . /etc/rc.subr

 name=ppp
 rcvar=ppp_enable
 start_cmd=ppp_start
 stop_cmd=:

 Now, I do notice that the stock script comes with a REQUIRE isdnd as
 well as netif. As I'm not running isdn, would that stop rc from
 bringing the script up, or are REQUIREs OR'd and not AND'd?

 Mike

I forgot to mention, as a workaround if you can't get the rc.d script working 
you can start it from cron. Just replace the time/day/month variables 
with @reboot and the path to the exicutable. I use it for a couple of 
things that don't have start scripts. See man(5) crontab for examples.

Beech

-- 
---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---











___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Lane
On Saturday 23 December 2006 15:36, Michael P. Soulier wrote:
 On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote:
  Do you have ppp-user_enable=yes in your /etc/rc.conf?

 No, and looking at ppp-user, I don't see why I'd need one. I have
 ppp_enable=YES.


 # PROVIDE: ppp-user
 # REQUIRE: netif isdnd
 # KEYWORD: nojail

 . /etc/rc.subr

 name=ppp
 rcvar=ppp_enable
 start_cmd=ppp_start
 stop_cmd=:

 Now, I do notice that the stock script comes with a REQUIRE isdnd as
 well as netif. As I'm not running isdn, would that stop rc from
 bringing the script up, or are REQUIREs OR'd and not AND'd?

 Mike
 --
Mike,

I'm not so much familiar with rcorder and how it works, so I might be out of 
my depth ... but here goes ...

It appeas that /etc/rc uses -s nostart when it arranges scripts in /etc/rc.d 
for startup (using rcorder).  If you are running in a jail it will also 
use -s nojail

Clearly if you are running ppp in a jail you don't get to start via rc

It does not appear that rcorder is invoked when you run the script from the 
command line ... thus it will start when you invoke it manually as long 
as /etc/rc.conf agrees.

Do this:

rcorder -s nostart /etc/rc.d/*

Does ppp show up?  If not then there is the problem.  As to WHY .. well you'd 
have to ask the developer.

But If I was trouble-shooting to get it to work until the developer of rcorder 
got back with me, I this I'd do it this way:

1) copy /etc/rc.d/ppp-user to /usr/local/etc/rc.d/ppp-user (so I can monkey 
with it without messing things up.
2) change ppp_enable=YES to ppp_enable=NO in /etc/rc.conf
3) make up a new variable (e.g. mikes_ppp_enable) and put it in /etc/rc.conf 
in place of ppp_enable.  Of course, set it to mikes_ppp_enable=YES
4) alter the new /usr/local/etc/rc.d/ppp-user to make it use mikes_ppp_enable
5) reboot

If ppp does not start then ...

edit /usr/local/etc/rc.d/ppp-user to REMOVE the # REQUIRE line

reboot again

If ppp STILL does not start ... well ... i don't like my solutions, but ... 
I'd delete all of the rcorder information from my script and hang on until 
the developer (or someone else) could help me straighten it out.

lane
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Lane
On Saturday 23 December 2006 15:36, Michael P. Soulier wrote:
 On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote:
  Do you have ppp-user_enable=yes in your /etc/rc.conf?

 No, and looking at ppp-user, I don't see why I'd need one. I have
 ppp_enable=YES.


 # PROVIDE: ppp-user
 # REQUIRE: netif isdnd
 # KEYWORD: nojail

 . /etc/rc.subr

 name=ppp
 rcvar=ppp_enable
 start_cmd=ppp_start
 stop_cmd=:

 Now, I do notice that the stock script comes with a REQUIRE isdnd as
 well as netif. As I'm not running isdn, would that stop rc from
 bringing the script up, or are REQUIREs OR'd and not AND'd?

 Mike
 --
Mike,

I'm not so much familiar with rcorder and how it works, so I might be out of 
my depth ... but here goes ...

It appeas that /etc/rc uses -s nostart when it arranges scripts in /etc/rc.d 
for startup (using rcorder).  If you are running in a jail it will also 
use -s nojail

Clearly if you are running ppp in a jail you don't get to start via rc

It does not appear that rcorder is invoked when you run the script from the 
command line ... thus it will start when you invoke it manually as long 
as /etc/rc.conf agrees.

Do this:

rcorder -s nostart /etc/rc.d/*

Does ppp show up?  If not then there is the problem.  As to WHY .. well you'd 
have to ask the developer.

But If I was trouble-shooting to get it to work until the developer of rcorder 
got back with me, I this I'd do it this way:

1) copy /etc/rc.d/ppp-user to /usr/local/etc/rc.d/ppp-user (so I can monkey 
with it without messing things up.
2) change ppp_enable=YES to ppp_enable=NO in /etc/rc.conf
3) make up a new variable (e.g. mikes_ppp_enable) and put it in /etc/rc.conf 
in place of ppp_enable.  Of course, set it to mikes_ppp_enable=YES
4) alter the new /usr/local/etc/rc.d/ppp-user to make it use mikes_ppp_enable
5) reboot

If ppp does not start then ...

edit /usr/local/etc/rc.d/ppp-user to REMOVE the # REQUIRE line

reboot again

If ppp STILL does not start ... well ... i don't like my solutions, but ... 
I'd delete all of the rcorder information from my script and hang on until 
the developer (or someone else) could help me straighten it out.

lane
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Michael P. Soulier

On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote:

I forgot to mention, as a workaround if you can't get the rc.d script working
you can start it from cron. Just replace the time/day/month variables
with @reboot and the path to the exicutable. I use it for a couple of
things that don't have start scripts. See man(5) crontab for examples.


Hmm. Thanks. Good to know, that could do as a workaround for now.

Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not everything coming up on a reboot

2006-12-23 Thread Michael P. Soulier

On 12/23/06, Lane [EMAIL PROTECTED] wrote:

It does not appear that rcorder is invoked when you run the script from the
command line ... thus it will start when you invoke it manually as long
as /etc/rc.conf agrees.

Do this:

rcorder -s nostart /etc/rc.d/*


[EMAIL PROTECTED] ~]$ rcorder -s nostart /etc/rc.d/* | grep -A1 -B1 ppp-user
/etc/rc.d/netif
/etc/rc.d/ppp-user
/etc/rc.d/ipfw


Does ppp show up?  If not then there is the problem.  As to WHY .. well you'd
have to ask the developer.

But If I was trouble-shooting to get it to work until the developer of rcorder
got back with me, I this I'd do it this way:


Thanks. I might take some time to tinker with it.

I've opened a bug report for now. Maybe I'll have something to append
to it soon.

Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]