Re: rc.conf and loader.conf

2012-10-26 Thread Polytropon
On Fri, 26 Oct 2012 07:37:09 +0200 (CEST), Trond Endrestøl wrote:
> However, I like to keep the lines in the /etc/rc.conf file in the same 
> order as they appear in the /etc/defaults/rc.conf file, and place 
> local stuff (from /usr/local/etc/rc.d) in alphabetical order at the 
> bottom of the file.

Slight deviation: I tend to group settings according to their
functionality (network, server stuff, console settings etc.),
and also have local additions at the end of the file. However,
FreeBSD also supports rc.conf.local to keep them.

The rc.conf file can be seen as a shell script, containing
variable assignments. It is that simple. It implies that you
can arrange everything (with newlines, comments, in groups,
as you wish) as long as it is valid shell syntax.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf and loader.conf

2012-10-25 Thread Trond Endrestøl
On Fri, 26 Oct 2012 03:47+0330, Ashkan Rahmani wrote:

> hi,
> what is the best order of items in rc.conf and loader.conf?
> actually items order is important?

Order is not important, as explained by someone else on the list.

However, I like to keep the lines in the /etc/rc.conf file in the same 
order as they appear in the /etc/defaults/rc.conf file, and place 
local stuff (from /usr/local/etc/rc.d) in alphabetical order at the 
bottom of the file.

Just my $0.02.

-- 
+---++
| Vennlig hilsen,   | Best regards,  |
| Trond Endrestøl,  | Trond Endrestøl,   |
| IT-ansvarlig, | System administrator,  |
| Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
| sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
+---++___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: rc.conf and loader.conf

2012-10-25 Thread Erich Dollansky
Hi,

On Fri, 26 Oct 2012 03:47:29 +0330
Ashkan Rahmani  wrote:

> hi,
> what is the best order of items in rc.conf and loader.conf?
> actually items order is important?
> 
as you know already, the order does not matter at all. But there some
modules which cannot coexist. 

I prefer to build a custom kernel over loading modules. Of course, as
this does not always lead to a perfect solution, I still have some
kernel modules which are loaded at boot time or even after the system
is up and running via a script I start manually.

With other words, FreeBSD gives you all the freedom you need to get the
best solution for your needs.

Erich


> Best regards,
> Ashkan
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf and loader.conf

2012-10-25 Thread Devin Teske

On Oct 25, 2012, at 5:17 PM, Ashkan Rahmani wrote:

> hi,
> what is the best order of items in rc.conf and loader.conf?
> actually items order is important?
> 

order does not matter (unless you have duplicates -- in which case later 
assignments override previous ones).
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-07-01 Thread RW
On Wed, 30 Jun 2010 22:03:04 -0700 (PDT)
Chris Stankevitz  wrote:

> I would like to learn more about how rc operates.  I want to know
> where on the hard drive the instructions are located that activate
> when I say gnome_enable="YES".  I naively thought I would find a file
> called "/usr/local/etc/rc.d/gnome" -- but I did not.  Something more
> complicated is going on.  So my question is -- how is this working?

Normally it works they way you thought it did - this is special case. 

Mostly "*_enable" variables are defaulted to NO, but those five scripts
set their default from gnome_enable, which in turn is defaulted to NO.

By setting  gnome_enable="YES" you can start all the daemons that Gnome
needs without having to know which they are, and without having to keep
track of them as Gnome is upgraded. And you can still turn-off things
you don't want e.g.:

gnome_enable=YES
gdm_enable=NO
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-07-01 Thread Robert Bonomi
> Date: Wed, 30 Jun 2010 21:10:41 -0700 (PDT)
> From: Chris Stankevitz 
> Subject: rc.conf: gnome_enable="YES" - which instructions executed?
>
> My rc.conf file has this entry: gnome_enable="YES"
>
> Q: Where on my hard drive can I find the instructions executed to "enable" 
> GNOME?
>
> A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist]

rc.conf is sourced by -every- script in the rc.d directory.

cd /etc/rc.d
grep gnome_enable *

should give some hints.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-07-01 Thread Giorgos Keramidas
On Wed, 30 Jun 2010 21:10:41 -0700 (PDT), Chris Stankevitz 
 wrote:
> My rc.conf file has this entry: gnome_enable="YES"
>
> Q: Where on my hard drive can I find the instructions executed to "enable" 
> GNOME?
>
> A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist]

gnome_enable is a 'default' option that enables some services that make
GNOME desktop experience a bit more useful & pleasurable.  You can see
which services default to "YES" by running:

keram...@kobe:/home/keramida$ cd /usr/local/etc/rc.d
keram...@kobe:/usr/local/etc/rc.d$ fgrep -l gnome_enable *
avahi-daemon
avahi-dnsconfd
dbus
gdm
hald
keram...@kobe:/usr/local/etc/rc.d$

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Kevin Kinsey

Chris Stankevitz wrote:

From: Rob Farmer 

Q: Where on my hard drive can I find the instructions

executed to "enable" GNOME?

This enables dbus, avahi, hal, and gdm (assuming that they
are installed, of course). See the files for those things in
/usr/local/etc/rc.d for the details of what is run.

See:
http://www.freebsd.org/gnome/docs/faq2.html#full-gnome


Rob,

Thank you for your response.  I also saw that comment in

> the docs; however, I am actually not interested in knowing
> what gnome_enable="YES" does.  I should have been more clear.


I would like to learn more about how rc operates.  I want

> to know where on the hard drive the instructions are

located that activate when I say gnome_enable="YES".

> I naively thought I would find a file called "/usr/local/etc/rc.d/gnome"
>  -- but I did not.  Something more complicated is going
> on.  So my question is -- how is this working?


Thank you,



Err, Magic?

More seriously, `man rc` and several hours of cross-references
(rc.subr., rc.conf., rc.local, etc. etc.) might be enlightening.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Chris Stankevitz
> From: Rob Farmer 
> >
> > Q: Where on my hard drive can I find the instructions
> executed to "enable" GNOME?
> 
> This enables dbus, avahi, hal, and gdm (assuming that they
> are
> installed, of course). See the files for those things in
> /usr/local/etc/rc.d for the details of what is run.
> 
> See:
> http://www.freebsd.org/gnome/docs/faq2.html#full-gnome

Rob,

Thank you for your response.  I also saw that comment in the docs; however, I 
am actually not interested in knowing what gnome_enable="YES" does.  I should 
have been more clear.

I would like to learn more about how rc operates.  I want to know where on the 
hard drive the instructions are located that activate when I say 
gnome_enable="YES".  I naively thought I would find a file called 
"/usr/local/etc/rc.d/gnome" -- but I did not.  Something more complicated is 
going on.  So my question is -- how is this working?

Thank you,

Chris


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Chris Stankevitz
> From: Dan Nelson 
> > Q: Where on my hard drive can I find the instructions
> >executed to "enable" GNOME?
> 
> Try:
> 
> grep "name=.*gnome" /usr/local/etc/rc.d/*

Thank you.  This command returns nothing, but it got me looking in the right 
place.

There are multiple references to gnome_enable within files in this directory: 
/usr/local/etc/rc.d/

The references appear like so:

grep gnome /usr/local/etc/rc.d/*
hald:. /usr/local/etc/gnome.subr
hald:hald_enable=${hald_enable-${gnome_enable}}

Thank you,

Chris


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Rob Farmer
On Wed, Jun 30, 2010 at 9:10 PM, Chris Stankevitz
 wrote:
> My rc.conf file has this entry: gnome_enable="YES"
>
> Q: Where on my hard drive can I find the instructions executed to "enable" 
> GNOME?

This enables dbus, avahi, hal, and gdm (assuming that they are
installed, of course). See the files for those things in
/usr/local/etc/rc.d for the details of what is run.

See:
http://www.freebsd.org/gnome/docs/faq2.html#full-gnome

-- 
Rob Farmer

>
> A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist]
>
> Thank you,
>
> Chris
>
>
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Dan Nelson
In the last episode (Jun 30), Chris Stankevitz said:
> My rc.conf file has this entry: gnome_enable="YES"
> 
> Q: Where on my hard drive can I find the instructions executed to "enable" 
> GNOME?
> 
> A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist]
> 
> Thank you,

Try:

grep "name=.*gnome" /usr/local/etc/rc.d/*

Most rc scripts are named the same as their rc.subr enable_* variables, but
they don't have to be.  If no rc.d scripts have "name=gnome" in them, then
your gnome_enable line doesn't do a thing.  Maybe you had installed a port
at some point in the past that required it, but the port has been
uninstalled since then?

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Mel Flynn
On Thursday 11 June 2009 12:03:56 Yuri wrote:
> Mel Flynn wrote:
> > So escape use and escape the quotes with a backslash. You may need more
> > then one backslash, depending on the level of evaluation in /etc/rc.subr
> > and /etc/rc.d/netif.
>
> I believe documentation should describe this since this is a major
> element of setting wireless network up.

Perhaps.

> If that's more than one backslash that's bad since it makes it cryptic.
> I will investigate and will file a PR with patch.

Knowledge of how sh treats variables is assumed for any unix admin. The level 
of escaping might be cryptic to some, but using sh -x /etc/rc./netif start 
 one can easily trace how the ifconfig_ variable is evaluated 
and where the backslashes are consumed.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Mel Flynn
On Thursday 11 June 2009 11:55:15 Mel Flynn wrote:
> On Thursday 11 June 2009 11:29:25 Yuri wrote:
> > I can't find any references in rc.conf(5) on how to set up ifconfig line
> > if SSID has spaces which is very typical situation.
> > ifconfig(8) doesn't mention this either but it works if I put quotes
> > around it.
>
> So escape use
strike that escape.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Yuri

Mel Flynn wrote:


So escape use and escape the quotes with a backslash. You may need more then 
one backslash, depending on the level of evaluation in /etc/rc.subr and 
/etc/rc.d/netif.
  


I believe documentation should describe this since this is a major 
element of setting wireless network up.

If that's more than one backslash that's bad since it makes it cryptic.
I will investigate and will file a PR with patch.

Yuri

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Mel Flynn
On Thursday 11 June 2009 11:29:25 Yuri wrote:
> I can't find any references in rc.conf(5) on how to set up ifconfig line
> if SSID has spaces which is very typical situation.
> ifconfig(8) doesn't mention this either but it works if I put quotes
> around it.

So escape use and escape the quotes with a backslash. You may need more then 
one backslash, depending on the level of evaluation in /etc/rc.subr and 
/etc/rc.d/netif.

> I would assume spaces should be substituted for '_' like in Linux. But I
> remember I wasn't able to make it work for some reason.

The reason probably being that underscores are different characters from 
spaces and FreeBSD not making assumptions on things really being other things.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf when ssid has spaces in it: missing documentation or missing feature?

2009-06-11 Thread Glen Barber
On Thu, Jun 11, 2009 at 3:29 PM, Yuri wrote:
> I can't find any references in rc.conf(5) on how to set up ifconfig line if
> SSID has spaces which is very typical situation.
> ifconfig(8) doesn't mention this either but it works if I put quotes around
> it.
>
> I would assume spaces should be substituted for '_' like in Linux. But I
> remember I wasn't able to make it work for some reason.
>

Did you try escaping it?

"My\ SSID\ Has\ Spaces"

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf and starting scripts

2009-03-02 Thread Jerry McAllister
On Sun, Mar 01, 2009 at 07:14:17PM -0800, gahn wrote:

> 
> Hi all:
> 
> I have some starting scripts under some other directories other 
> than /etc/rc.d. How could I utilize the rc.conf file to start them 
> when the system boots up?
> 
> The default location for rc.conf is /etc/rc.d only and the 
> knob "local_startup=/usr/local/etc/rc.d" doesn't seem to be working 
> for me for some reasons

The way the question is put implies some possible misunderstanding
about how rc.conf works.   /etc/rc.conf itself is not executed.  It
is read up by the various scripts in etc/rc.d and /usr/local/etc/rc.d
to get values for constants that are defined there.   Some of those
constants are things like  linux_enable="YES" or lpd_enable="YES" 
or  hostname="fred.cheeze.org"  and many other possible things.   
the /etc/rc.conf files does nothing active.  It just sets there like
a bunch of passive data waiting to be looked at.

The rc system goes through the rc.d directories and, according to its
rules checks the script files in those directories and executes those 
scripts that merit execution in an order determined by its protocol.  
It used to be strictly alphabetical, but is more sophisticated now.  
See  man rc  and  man rcorder.

The scripts read up /etc/rc.conf and check for constants that interest
them, such as one to enable or run something.   If the file name 
ends in 'd', the convention is that it is a daemon.   But other 
things could be run to check stuff or set up some files, or whatever.
Besides telling a script to run or exit without doing anything, the 
constants also set conditions for things, such as that hostname setting.

But, it is up to the scripts - most or all in one of the rc.d directories -
to do anything about what is in /etc/rc.conf.  Just putting something in
the rc.conf file does nothing.   One or more of the scripts are what looks 
for the stuff you put in rc.conf and does/do all the work.

The scripts in the rc.d directories have to have execute permission.
There is a protocol set up for them to determine at which point in
the boot process they run (most can also be run manually after the
system is up, though doing them out of order can produce unpleasant
results in some cases). 

So, put your script in /usr/local/etc/rc.d.   Include the appropriate
protocol in the script (see man rc.d, man rc.conf and other related
man pages) and make sure it reads /etc/rc.conf if it needs constants
set or needs to decide whether or not to start something.

jerry


>   
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf and starting scripts

2009-03-01 Thread Polytropon
Allow me an addition:

On Mon, 2 Mar 2009 03:53:24 +, RW  wrote:
> /usr/local/etc/rc.d is the default for local scripts, that's where
> package put their scripts, but there are some rules.
> 
> - they should either be proper RCNG scripts or they should end in a .sh
>   extension

I'm not sure if this is valid anymore, but I think it's also
neccessary that a *.sh script is chmod +x, or it won't be
executed at startup. These scripts are located in /usr/local/etc.

The rc-style scripts ("foo { start | stop | restart | status }")
are located in the rc.d/ subdirectory, just like in /etc. They
usually have a corresponging enable setting ("foo_enable") in
/etc/rc.conf or /etc/rc.conf.local (see "man rc.conf"), as well
as means to set parameters ("foo_flags" or something specific).


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf and starting scripts

2009-03-01 Thread RW
On Sun, 1 Mar 2009 19:14:17 -0800 (PST)
gahn  wrote:

> 
> Hi all:
> 
> I have some starting scripts under some other directories other
> than /etc/rc.d. How could I utilize the rc.conf file to start them
> when the system boots up?
> 
> The default location for rc.conf is /etc/rc.d only and the knob
> "local_startup=/usr/local/etc/rc.d" doesn't seem to be working for me
> for some reasons

/usr/local/etc/rc.d is the default for local scripts, that's where
package put their scripts, but there are some rules.

- they should either be proper RCNG scripts or they should end in a .sh
  extension

- local RCNG scripts are ignored if they order themselves before the
  early-late divider.




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf and starting scripts

2009-03-01 Thread Olivier Nicole
Hi,

> The default location for rc.conf is /etc/rc.d only and the knob
> "local_startup=/usr/local/etc/rc.d" doesn't seem to be working for
> me for some reasons

Syntax? on my machines it's:

local_startup="/usr/local/etc/rc.d"

with quotes around the path, not around the full line.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: rc.conf ...need help

2007-02-07 Thread Don Munyak

On 2/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

On 06/02/07, Jerry McAllister <[EMAIL PROTECTED]> wrote:
> On Tue, Feb 06, 2007 at 03:58:06PM -0500, Don Munyak wrote:
>
> > How can I edit rc.conf while in single user mode. I've tried vi & ee,
> > but system doesn't recognize either.


Thanks to everyone.

I actually had fixed the file 2 minutes after receiving first reply
but was unable to respond until now. However, having 2-3 different
approaches and/or alternatives is also quite helpful.

Thanks Again,

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


Re: rc.conf ...need help

2007-02-06 Thread [EMAIL PROTECTED]

On 06/02/07, Jerry McAllister <[EMAIL PROTECTED]> wrote:

On Tue, Feb 06, 2007 at 03:58:06PM -0500, Don Munyak wrote:

> How can I edit rc.conf while in single user mode. I've tried vi & ee,
> but system doesn't recognize either.

It is probably not in your limited path in single user or not
in a mounted partition.

You may have to mount the partition containing 'vi', probably /usr.

While in single user, do:
  fsck -p
  mount -u /
  mount -a
  swapon -a

Then you should be able to use vi as:

  /usr/bin/vi /etc/rc.conf

using the full path for vi skips over putting it in your path.
Make your fix and reboot.


knowing ed (red or sed) can be a useful skill,
as it resides in /bin, thus being useful in other
situations (/usr buggered (which I know never
hap'ns in real life))

although dealing with / and " in sed can be a bit
of a chore, practise will not hurt

and if it is nothing terrifically important that
was mauled (syslogd can be started from the
command line, for instance) ^D in single user
mode will go ahead and finish the boot to multi-
user

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


Re: rc.conf ...need help

2007-02-06 Thread Jerry McAllister
On Tue, Feb 06, 2007 at 03:58:06PM -0500, Don Munyak wrote:

> Hello,
> 
> I was tweaking the /etc/rc.conf file and apparently had a typo. Now
> the system boots into single user mode. I know what my error is
> 
> syslogd_enable=YES"  {left off the first "}
> 
> How can I edit rc.conf while in single user mode. I've tried vi & ee,
> but system doesn't recognize either.

It is probably not in your limited path in single user or not 
in a mounted partition.

You may have to mount the partition containing 'vi', probably /usr.

While in single user, do:
  fsck -p
  mount -u /
  mount -a
  swapon -a

Then you should be able to use vi as:

  /usr/bin/vi /etc/rc.conf

using the full path for vi skips over putting it in your path.
Make your fix and reboot.

jerry

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


Re: rc.conf ...need help

2007-02-06 Thread Lowell Gilbert
"Don Munyak" <[EMAIL PROTECTED]> writes:

> I was tweaking the /etc/rc.conf file and apparently had a typo. Now
> the system boots into single user mode. I know what my error is
>
> syslogd_enable=YES"  {left off the first "}
>
> How can I edit rc.conf while in single user mode. I've tried vi & ee,
> but system doesn't recognize either.

"I made a mistake in rc.conf, or another startup file, and now I
cannot edit it because the filesystem is read-only. What should I do?" 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RCCONF-READONLY
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf ...need help

2007-02-06 Thread John Nielsen
On Tuesday 06 February 2007 15:58, Don Munyak wrote:
> I was tweaking the /etc/rc.conf file and apparently had a typo. Now
> the system boots into single user mode. I know what my error is
>
> syslogd_enable=YES"  {left off the first "}
>
> How can I edit rc.conf while in single user mode. I've tried vi & ee,
> but system doesn't recognize either.

You can mount /usr (assuming that's not related to whatever you're trying to 
fix) by typing "mount /usr". You'll also need to mount / read/write before 
you can modify rc.conf so I usually just do "mount -a". "mount /" will 
re-mount / with the default r/w settings.

If you do have a problem with /usr, there are statically linked versions of 
both system default editors in /rescue. So you could also 
do "/rescue/ee /etc/rc.conf", for example.

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


Re: rc.conf

2007-01-23 Thread youshi10

On Tue, 23 Jan 2007, eoghan wrote:


On 23 Jan 2007, at 18:26, Jerry McAllister wrote:




Hi
Just a general question:
should all values in rc.conf be in quotes... like:
network_enable="rl0"


It is a good idea.  I think, if there is no white space in the value,
then you can get away without it, but maybe I have my shells confused
in my mind.   Anyway, using the quotes will always be OK.


ok thanks to all who replied.
Eoghan


I always use quotes because it's easier to follow along with and in case of 
whitespace, the rc.conf parser won't bail / give the relevant command incorrect 
values, IIRC.

-Garrett

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


Re: rc.conf

2007-01-23 Thread eoghan

On 23 Jan 2007, at 18:26, Jerry McAllister wrote:




Hi
Just a general question:
should all values in rc.conf be in quotes... like:
network_enable="rl0"


It is a good idea.  I think, if there is no white space in the value,
then you can get away without it, but maybe I have my shells confused
in my mind.   Anyway, using the quotes will always be OK.


ok thanks to all who replied.
Eoghan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf

2007-01-23 Thread Jerry McAllister
On Tue, Jan 23, 2007 at 04:22:44PM +, eoghan wrote:

> Hi
> Just a general question:
> should all values in rc.conf be in quotes... like:
> network_enable="rl0"

It is a good idea.  I think, if there is no white space in the value,
then you can get away without it, but maybe I have my shells confused
in my mind.   Anyway, using the quotes will always be OK.

jerry

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


Re: rc.conf

2007-01-23 Thread George Vanev

In man rc.conf everything is written with double quotes

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


Re: rc.conf

2007-01-23 Thread Andrew Pantyukhin

On 1/23/07, eoghan <[EMAIL PROTECTED]> wrote:

Hi
Just a general question:
should all values in rc.conf be in quotes... like:
network_enable="rl0"


rc.conf is just a bourne shell script, so all sh(1)
rules apply (no one really knows _all_ the rules,
though).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread Riemer Palstra
On Sun, Jan 07, 2007 at 01:05:04PM +0100, VeeJay wrote:
> In which file and what location, I can find the DNS Server IP address
> I gave during installation?

/etc/resolv.conf, like on most Unix-like systems.

You might want to try reading the Handbook though,

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html

-- 
Riemer PalstraAmsterdam, The Netherlands
[EMAIL PROTECTED]http://www.palstra.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread Daniel Molina Wegener
On Sunday 07 January 2007 09:05, VeeJay wrote:
> Hello friends

  Hello

> During installation, we provide DNS server address,
> Defaultrouter address, machin's IP address and Netmask
> address.
>
> I can find and change the IP, Netmask and Defaultrouter
> addresses in /etc/rc.conf. But where to find & change DNS1 &
> DNS2 servers IP's?
>
> In which file and what location, I can find the DNS Server IP
> address I gave during installation?

  Try looking at /etc/resolv.conf and resolver(5) manual page.
>
> Thanks for the help!

Best regards,
-- 
 . 0 . | Daniel Molina Wegener
 . . 0 | dmw at unete dot cl
 0 0 0 | FreeBSD User
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread Nguyen Tam Chinh

Hello,

You can change these parameters in /etc/resolv.conf. The man page
resolver(5) would help you with the syntax.

On 1/7/07, VeeJay <[EMAIL PROTECTED]> wrote:

Hello friends

During installation, we provide DNS server address, Defaultrouter
address, machin's IP address and Netmask address.

I can find and change the IP, Netmask and Defaultrouter addresses in
/etc/rc.conf. But where to find & change DNS1 & DNS2 servers IP's?

In which file and what location, I can find the DNS Server IP address I gave
during installation?

Thanks for the help!

--
Thanks!

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




--
With best regards,| The Power to Serve
Nguyen Tam Chinh  |  http://www.FreeBSD.org
Loc: sp.cs.msu.su
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread N.J. Mann
On Sunday,  7 January, 2007 at 13:05:04 +0100, VeeJay wrote:
> 
> During installation, we provide DNS server address, Defaultrouter
> address, machin's IP address and Netmask address.
> 
> I can find and change the IP, Netmask and Defaultrouter addresses in
> /etc/rc.conf. But where to find & change DNS1 & DNS2 servers IP's?
> 
> In which file and what location, I can find the DNS Server IP address I gave
> during installation?

/etc/resolv.conf


Cheers,
   Nick.
-- 
Please do not CC me on replies, I read the list and don't need the dupes.

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


Re: rc.conf doesn't work after FreeBSD was updated from 5.3 to 5.4

2005-09-07 Thread Norberto Meijome
jia liu wrote:

> --- Norberto Meijome <[EMAIL PROTECTED]>写道:
[...]
please copy the list so others can help and the solution archived for
others to see.

> 
> Here is my rc.conf:
> #--sysinstall generated deltas--# Thu Sep 8 2005
> ifconfig_dc0:"inet 192.168.0.3 netmask 255.255.255.0"
looks ok to me
> defaultrouter="192.168.0.1"
> hostname="test.com"
this should be
hostname="something.test.com"


> 
> And I tested that, even I rm /etc/rc.conf, the problem
> happens as before.

yeah, deleting the main config file will not really fix anything. that's
a M$ solution ;)

> When I 'ifconfig', see like these:
> dc0: flags=108802<...> mtu 1500
> options=8 
> media:Ethernet autoselect
> Status:active

not sure why, sorry.(is that the exact output?)

btw, if you want your firewall to be setup, u need to set
firewall_enable="YES"

and ipfilter_enable="YES" if you use ipf

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


Re: rc.conf doesn't work after FreeBSD was updated from 5.3 to 5.4

2005-09-07 Thread Norberto Meijome
jia liu wrote:
> Sir:
> 
> 1. I delete my src directory on 5.3-release(rm -fr)
> and  was going to update to 5.4-release via source
> tree.
> 2. after cvsup, then buildworld, buildkernel,
> installkernel; finaly mergemaster, installworld on
> single user model. It seem everything is okay.
> 3. the problem happen after reboot. It is said
> '/etc/rc: WARNING: $ipfilter_enable is not set
> properly -see rc.conf(5)'...And it seems my hostname
> is 'Amnesiac', not as I typed in rc.conf. I tried to
> add or motiy some rc.conf by hand or by sysinstall.
> But it looks everything on rc.conf doesn't work.
> 
> I want to know what is the problem. Thanks.

could you please post the content of rc.conf please?

btw, you dont need to delete the src tree to upgrade...cvsup will take
longer downloading all the files rather than the changes only (though it
wont have to compare the fileshmm)

beto

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


Re: rc.conf - setting interface UP without IP-address?

2005-08-31 Thread Pavel Jordák
On 31 Srpen 2005, 11:02, Ewald Jenisch napsal(a):
>
> Hi,
>
> I'm looking for a way to set an interface UP using /etc/rc.conf
> without giving the interface an IP-address (i.e. neither static nor DHCP)
>
> Background: The machine in question has three Ethernet-IFs - one
connects to the LAN (and has an IP-address) the other two are used for
monitoring traffic via ethereal only. For security reasons I don't want
to assign IP-addresses to the two "ethereal-only" interfaces - but I
need them "UP".
>
> Sure enough I can "up" these interfaces manually but I want them up at
boot-time.
>
> I've tried with entries like e.g.
>
> ifconfig_fxp1=""
> ifconfig_fxp1="UP"
>
> in my /etc/rc.conf - none of these work.
>
>
>
> So what should I configure in /etc/rc.conf in order to get the
> interfaces UP?
>
> BTW - ethereal only recognizes interfaces that are in the "UP" state.
>
> Thanks much in advance for any clue,
> -ewald
>

Hi, Ewald,

I'd try this:

ifconfig_fxp1="inet 0.0.0.0 netmask 255.255.255.255"

It's not exactly, what you ask for, but could help. I'm not able to test
it now, it's only an idea...

Pavel Jordak
ANF DATA, Prague




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


Re: rc.conf - setting interface UP without IP-address?

2005-08-31 Thread Ewald Jenisch

On Wed, Aug 31, 2005 at 01:36:32PM +0300, Giorgos Keramidas wrote:
> 
> Try "up" (lowercase) instead.
> 

Thanks much for the hint! This absolutely does the trick - now I've
got "all my interfaces" up ;-)

Regards,
-ewald

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


Re: rc.conf - setting interface UP without IP-address?

2005-08-31 Thread Rein Kadastik

Thanks, the answer was just too simple for me to figure it out by myself :)

Rein

Ewald Jenisch wrote:


On Wed, Aug 31, 2005 at 02:41:45PM +0300, Rein Kadastik wrote:
 

Excuse me for a silly question, but what the hell is UP? I know, what is 
IP, I know how ifconfig works, but wtf is UP?


   



UP is the state of the interface. You can set an IF up/down to
enable/disable the IF. Current state of an interface can be seen with
ifconfig, e.g.

fxp0: flags=8843 mtu 1500
^^

Normally an interface is automatically taken up when you give it an
IP-address.

-ewald


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

__ NOD32 1.1205 (20050830) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



 



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


Re: rc.conf - setting interface UP without IP-address?

2005-08-31 Thread Ewald Jenisch
On Wed, Aug 31, 2005 at 02:41:45PM +0300, Rein Kadastik wrote:
> Excuse me for a silly question, but what the hell is UP? I know, what is 
> IP, I know how ifconfig works, but wtf is UP?
> 

UP is the state of the interface. You can set an IF up/down to
enable/disable the IF. Current state of an interface can be seen with
ifconfig, e.g.

fxp0: flags=8843 mtu 1500
 ^^

Normally an interface is automatically taken up when you give it an
IP-address.

-ewald


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


Re: rc.conf - setting interface UP without IP-address?

2005-08-31 Thread Rein Kadastik
Excuse me for a silly question, but what the hell is UP? I know, what is 
IP, I know how ifconfig works, but wtf is UP?


Rein

Giorgos Keramidas wrote:


On 2005-08-31 11:02, Ewald Jenisch <[EMAIL PROTECTED]> wrote:
 


I'm looking for a way to set an interface UP using /etc/rc.conf
without giving the interface an IP-address (i.e. neither static nor
DHCP)

Background: The machine in question has three Ethernet-IFs - one
connects to the LAN (and has an IP-address) the other two are used for
monitoring traffic via ethereal only. For security reasons I don't
want to assign IP-addresses to the two "ethereal-only" interfaces -
but I need them "UP".

Sure enough I can "up" these interfaces manually but I want them up at
boot-time.

I've tried with entries like e.g.

ifconfig_fxp1=""
ifconfig_fxp1="UP"

in my /etc/rc.conf - none of these work.
   



Try "up" (lowercase) instead.

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

__ NOD32 1.1205 (20050830) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



 



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


Re: rc.conf - setting interface UP without IP-address?

2005-08-31 Thread Giorgos Keramidas
On 2005-08-31 11:02, Ewald Jenisch <[EMAIL PROTECTED]> wrote:
> I'm looking for a way to set an interface UP using /etc/rc.conf
> without giving the interface an IP-address (i.e. neither static nor
> DHCP)
>
> Background: The machine in question has three Ethernet-IFs - one
> connects to the LAN (and has an IP-address) the other two are used for
> monitoring traffic via ethereal only. For security reasons I don't
> want to assign IP-addresses to the two "ethereal-only" interfaces -
> but I need them "UP".
>
> Sure enough I can "up" these interfaces manually but I want them up at
> boot-time.
>
> I've tried with entries like e.g.
>
> ifconfig_fxp1=""
> ifconfig_fxp1="UP"
>
> in my /etc/rc.conf - none of these work.

Try "up" (lowercase) instead.

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


Re: rc.conf reloaded

2005-03-15 Thread Giorgos Keramidas
On 2005-03-15 19:31, Bernt Hansson <[EMAIL PROTECTED]> wrote:
> Jeff Wirth skrev:
> >FAQs for FreeBSD:
> >http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#REREAD-RC
> >
> >Recent thread on freebsd-questions: (reload rc.conf without rebooting)
> >http://lists.freebsd.org/mailman/htdig/freebsd-questions/2005-March/thread.html#79339
>
> Thanks Jeff. It seems like one can't reload rc.conf from an ssh
> session.  Well. That's that i suppose. Thank you ALL for the input.

Yes, you can't "reload" rc.conf.  It doesn't make sense, because rc.conf
is not "loaded" after a system has brought itself up.  It only serves as
a useful collection of options and is parsed (mostly) at startup time by
some of the startup scripts.

If you have some specific changes to rc.conf in mind that you need to
apply without a reboot, it's usually possible.  We'd have to know what
the exact changes were though, before any meaningful response could be
written.

- Giorgos

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


Re: rc.conf reloaded

2005-03-15 Thread Bernt Hansson
Jeff Wirth skrev:
FAQs for FreeBSD:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#REREAD-RC
Recent thread on freebsd-questions: (reload rc.conf without rebooting)
http://lists.freebsd.org/mailman/htdig/freebsd-questions/2005-March/thread.html#79339
Thanks Jeff. It seems like one can't reload rc.conf from an ssh session.
Well. That's that i suppose. Thank you ALL for the input.

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


Re: rc.conf reloaded

2005-03-15 Thread Jeff Wirth
> On Tue, 15 Mar 2005 08:33:26 +0100, Bernt Hansson <[EMAIL PROTECTED]> wrote:
> Hello.
> 
> I want to reread the rc.conf file without reboot.
> How does one do that?
> 
> /etc/netstart restarts the network but /etc/rc.conf
> does nothing.
> 
> Is it me or...

FAQs for FreeBSD:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#REREAD-RC

Recent thread on freebsd-questions: (reload rc.conf without rebooting)
http://lists.freebsd.org/mailman/htdig/freebsd-questions/2005-March/thread.html#79339

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


Re: rc.conf reloaded

2005-03-15 Thread Giorgos Keramidas
On 2005-03-15 08:33, Bernt Hansson <[EMAIL PROTECTED]> wrote:
> Hello.
>
> I want to reread the rc.conf file without reboot.

Why?

What you probably want is to apply some change in the settings of rc.conf.
This can usually be done by restarting just the affected components.

There *are* a few changes of rc.conf that may ultimately affect too many
components and/or services of the running system that a plain reboot may be
the best option you have, but you would have to give us more details about
the changes you made before we tell you what's the best thing to do.

What is it exactly that you changed in rc.conf?

> How does one do that?
>
> /etc/netstart restarts the network but /etc/rc.conf does nothing.

True.

The rc.conf file doesn't "do" anything.  It merely contains options and flags
for other startup scripts.  Depending on your FreeBSD version, the scripts
that are affected by rc.conf's contents are either the /etc/rc.* files (for
versions released before FreeBSD 5.3) or /etc/rc.d/* (for 5.3 and newer
releases).

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


Re: rc.conf and new startup scripts

2004-12-02 Thread Cezar Fistik
Thanks Kevin, but this is not exactly what I was looking for. Just found
what I realy needed. This is called 'man rc.subr'.

Regards,
Cezar

- Original Message - 
From: "Kevin D. Kinsey, DaleCo, S.P." <[EMAIL PROTECTED]>
To: "Cezar Fistik" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 02, 2004 6:11 PM
Subject: Re: rc.conf and new startup scripts


> Cezar Fistik wrote:
>
> >Hi all,
> >
> >I would like to get some info about changes to startup
> >scripts that are in /usr/local/etc/rc.d/ directory. It
> >looks like they are completely different now... calls
> >to some "strange" functions etc. How do they relate to
> >rc.conf? I mean now I need to tell in rc.conf: DAEMON_enable="YES",
> >if I don't the script in rc.d is just ignored. I would appreciate
> >any info regarding these new changes.
> >
> >Thank you,
> >Cezar
> >
> >
>
> The comments in /etc/defaults/rc.conf are a good
> starting point, and quite educational IMHO.
>
> Kevin Kinsey
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>



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


Re: rc.conf and new startup scripts

2004-12-02 Thread Kevin D. Kinsey, DaleCo, S.P.
Cezar Fistik wrote:
Hi all,
I would like to get some info about changes to startup 
scripts that are in /usr/local/etc/rc.d/ directory. It 
looks like they are completely different now... calls 
to some "strange" functions etc. How do they relate to 
rc.conf? I mean now I need to tell in rc.conf: DAEMON_enable="YES", 
if I don't the script in rc.d is just ignored. I would appreciate 
any info regarding these new changes.

Thank you,
Cezar
 

The comments in /etc/defaults/rc.conf are a good
starting point, and quite educational IMHO.
Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf

2004-06-25 Thread Kathy Quinlan
Chris limina wrote:
I'm running bsd 5.2.1
 
there is a syntax error in my rc.conf
 
what course of action do i take to repair it without having to re-install.
 
There should be a way to easily fix this. but none of the boot options allow me to edit
that file.
 
elighten me please.
Read the handbook, it details how to boot into single mode, check the 
disks and then mout them RW so you can edit rc.conf

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


Re: rc.conf

2004-06-25 Thread Bill Moran
Chris limina <[EMAIL PROTECTED]> wrote:

> I'm running bsd 5.2.1
>  
> there is a syntax error in my rc.conf
>  
> what course of action do i take to repair it without having to re-install.
>  
> There should be a way to easily fix this. but none of the boot options allow
> me to edit that file.

I'm guessing it's throwing you into single-user mode?

Do:
fsck
mount -a
ee /etc/rc.conf

Fix the error and reboot.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf not working

2004-02-13 Thread Kevin D. Kinsey, DaleCo, S.P.
Michael Goodman wrote:

I just cvsup'd from 4.9 to 5.2.  After the reboot I noticed that my nics
weren't configured.  Tried reconfiguring them using /stand/sysinstall
but no luck.   I tried manually sourcing /etc/rc.conf but nothing
changes.  I can't find any errors in syslog.  Any ideas?  Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


 

As root:

#ifconfig rl0 192.168.0.1 255.255.255.0

to manually config NIC's.  Use your driver
name/number and correct IP/netmask, of
course.
I've never used it, but I think that

#/bin/sh /etc/netstart

might be the other way ... I'm pretty sure
that using a shell's "source" command isn't
going to do much for you, though...although
I'm often wrong.
Kevin Kinsey

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


RE: rc.conf

2004-02-11 Thread Leon Verheem
in /etc/ run ./netstart

-Original Message-
From: DerAlSem [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 01:16 PM
To: [EMAIL PROTECTED]
Subject: rc.conf


Hello freebsd-newbies,

  I've made some changes to rc.conf. Is there a way to apply them
  without rebooting entire system? (i've added some ports to redirect
  in my NAT)

-- 
Best regards,
 DerAlSem  mailto:[EMAIL PROTECTED]

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


RE: RC.conf

2003-09-17 Thread Gil Agno Virtucio
This is what i have in my rc.conf.

gateway_enable="YES"
natd_enable="YES"
natd_interface="xl0"
natd_flags="-f /etc/natd.conf"
firewall_enable="YES"
firewall_script="/etc/rules/firewall1"
ipfilter_enable="YES" # This is for squids transparent 
proxy
ipnat_enable="YES"
ipmon_enable="YES"
ipfs_enable="YES"

I hope this helps.

---
Gil Agno Virtucio
Janitor/Collector/Messenger
NEC System Integration and Construction Phils. Inc.
15th Floor BPI Buendia Center.__  ___ ___ 
.
Gil Puyat Ave. Makati City 1200 /  _/|__|/   |   \| 
  |
Cellphone : +639163989695  /   \  ___|  /~\ 
  |
Office Phone: +6328914167  \\_\  \  \Y/ 
  |
---

-Original Message-
From: Shawn Guillemette [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 9:01 AM
To: [EMAIL PROTECTED]
Subject: RC.conf
I'm looking for an example of /etc/rc.conf that's from a 
machine that is running nat.. I had this running at one 
time a nd now need to reinstall and want to rebuild,., I 
just cant remember what I added to rc.conf

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


** Get your free E-Mail account at WWW.DIGITELONE.COM **
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: RC.conf

2003-09-17 Thread Shawn Guillemette
natd is what I was looking for.. Thank you
- Original Message - 
From: "Danny Horne" <[EMAIL PROTECTED]>
To: "Josh Paetzel" <[EMAIL PROTECTED]>; "Shawn Guillemette"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 3:18 PM
Subject: Re: RC.conf


> - Original Message - 
> From: "Josh Paetzel" <[EMAIL PROTECTED]>
> To: "Shawn Guillemette" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 17, 2003 11:09 PM
> Subject: Re: RC.conf
>
>
> > On Wed, Sep 17, 2003 at 06:00:36PM -0700, Shawn Guillemette wrote:
> > > I'm looking for an example of /etc/rc.conf that's from a machine that
is
> running nat.. I had this running at one time a nd now need to reinstall
and
> want to rebuild,., I just cant remember what I added to rc.conf
> > >
> >
> > gateway_enable="YES"
> > natd_enable="YES"
> > natd_interface="rl0"
> > natd_flags="-f /etc/natd.conf"
> > firewall_enable="YES"
> > firewall_script="/etc/firewall/fwrules"
> >
> That's assuming he wants natd, this for ipnat
>
> ipnat_enable="YES"  # Set to YES for ipnat; needs ipfilter,
too!
> ipnat_program="/sbin/ipnat -CF -f" # program and how to specify rules file
> ipnat_rules="/etc/ipnat.rules"  # rules definition file for ipnat
> ipnat_flags=""  # additional flags for ipnat
>
>
>
> ---
> avast! Antivirus: Outbound message clean.
> Virus Database (VPS): 16/09/2003
> Tested on: 17/09/2003 23:18:29
> avast! is copyright (c) 2000-2003 ALWIL Software.
> http://www.avast.com
>
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

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


Re: RC.conf

2003-09-17 Thread Danny Horne
- Original Message - 
From: "Josh Paetzel" <[EMAIL PROTECTED]>
To: "Shawn Guillemette" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 11:09 PM
Subject: Re: RC.conf


> On Wed, Sep 17, 2003 at 06:00:36PM -0700, Shawn Guillemette wrote:
> > I'm looking for an example of /etc/rc.conf that's from a machine that is
running nat.. I had this running at one time a nd now need to reinstall and
want to rebuild,., I just cant remember what I added to rc.conf
> >
>
> gateway_enable="YES"
> natd_enable="YES"
> natd_interface="rl0"
> natd_flags="-f /etc/natd.conf"
> firewall_enable="YES"
> firewall_script="/etc/firewall/fwrules"
>
That's assuming he wants natd, this for ipnat

ipnat_enable="YES"  # Set to YES for ipnat; needs ipfilter, too!
ipnat_program="/sbin/ipnat -CF -f" # program and how to specify rules file
ipnat_rules="/etc/ipnat.rules"  # rules definition file for ipnat
ipnat_flags=""  # additional flags for ipnat



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 16/09/2003
Tested on: 17/09/2003 23:18:29
avast! is copyright (c) 2000-2003 ALWIL Software.
http://www.avast.com



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


Re: RC.conf

2003-09-17 Thread Josh Paetzel
On Wed, Sep 17, 2003 at 06:00:36PM -0700, Shawn Guillemette wrote:
> I'm looking for an example of /etc/rc.conf that's from a machine that is running 
> nat.. I had this running at one time a nd now need to reinstall and want to 
> rebuild,., I just cant remember what I added to rc.conf
> 

gateway_enable="YES"
natd_enable="YES"
natd_interface="rl0"
natd_flags="-f /etc/natd.conf"
firewall_enable="YES"
firewall_script="/etc/firewall/fwrules"

Hope this helps,

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


Re: rc.conf in 5.1?

2003-06-14 Thread P. U. Kruppa
On Sat, 14 Jun 2003, Kjell Midtseter wrote:

> On Saturday, 14 June 2003 at 21:38:41 +0200, Markus Svensson wrote:
> > Hi all!
> >
> > I've just finished src upgrading my 5.0R box to 5.1R.
> > I've got one small problem though. After the upgrade, the system no
> > longer seems to use /etc/rc.conf during startup. This means that my
> > ADSL-connection does not start,
This is not a problem of /etc/rc.conf . There was a long
discussion about that on the freebsd-currrent mailing list the
last days. Several people complained about it and several others
will try to fix the problem.
If you can, try to cvsup to RELENG_5_1 . Now my ADSL-connection
does work again.

> > and that the correct keymap isn't
> > loaded. Is this handled differently in 5.1 than in 5.0, or have I just
> > missed something very basic?
My X-keymap is absolutely fine, my console keymap is a complete
mess. I don't think you missed anything.

Uli.

> >
> My rc.conf is being read as expected on both 5.0 and 5.1 here...
> Hei fra Kjell
>
> > Best Regards,
> > Markus Svensson
> > [EMAIL PROTECTED]
> >
> >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

+---+
|Peter Ulrich Kruppa|
|  -  Wuppertal -   |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf in 5.1?

2003-06-14 Thread Kjell Midtseter
On Saturday, 14 June 2003 at 21:38:41 +0200, Markus Svensson wrote:
> Hi all!
> 
> I've just finished src upgrading my 5.0R box to 5.1R.
> I've got one small problem though. After the upgrade, the system no
> longer seems to use /etc/rc.conf during startup. This means that my
> ADSL-connection does not start, and that the correct keymap isn't
> loaded. Is this handled differently in 5.1 than in 5.0, or have I just
> missed something very basic?
>
My rc.conf is being read as expected on both 5.0 and 5.1 here...
Hei fra Kjell
 
> Best Regards,
> Markus Svensson
> [EMAIL PROTECTED] 
> 
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf

2003-03-21 Thread Sunil Sunder Raj
Hi,
It depends on what parameters you have changed in rc.conf.
For example if you have changed the hostname then go to the /etc directory
grep "hostname" *
You will find the search resulting in a shell script file. Here it is 
rc.network: hostname ${hostname}

Then just run that shell script.

Cheers
SSR






From: "Tiago Andre" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: rc.conf
Date: Fri, 21 Mar 2003 11:09:06 +
How do i "compile" my rc.conf file?
whidout restar the pc
thanks

_
MSN Oscar: tem um palpite de quem vai ganhar? 
http://www.msn.com.br/oscar/enquete/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


_
Cricket World Cup 2003- News, Views and Match Reports. 
http://server1.msn.co.in/msnspecials/worldcup03/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: rc.conf

2003-03-21 Thread Ryan Merrick
Tiago Andre wrote:

How do i "compile" my rc.conf file?
whidout restar the pc
thanks

_
MSN Oscar: tem um palpite de quem vai ganhar? 
http://www.msn.com.br/oscar/enquete/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message
Hello,

# kill 1  will drop you into single user mode.  Then exit  the shell to 
"reload" rc.conf.

Ryan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: rc.conf

2003-03-21 Thread Bill Moran
Tiago Andre wrote:
How do i "compile" my rc.conf file?
whidout restar the pc
You can't.
The settings in rc.conf affect a number of different startup scripts.
I don't know of any way to reliably incorporate all rc.conf changes
into a running system.
On the flip side, if you know what you changed, you can manually
alter the running system.  For example: if you change your IP
address in rc.conf, you can change the running system with ifconfig.
If you change your default gateway, you can change your running
system with the route command.  I can't think of any rc.conf setting
that you can't change manually without a reboot, but it's going to
depend on the setting as to what you need to do.  If you mail the
list with the exact change(s) you want to make, I'm sure people will
help.
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


RE: rc.conf

2003-03-21 Thread Fredrick Nilsson
you could use the script netstart that resides in /etc.. but from my
experience, it doesnt work too well... 

another soloution is to "sthutdown now" and then "exit".. 

.f

-Original Message-
From: Tiago Andre [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:09
To: [EMAIL PROTECTED]
Subject: rc.conf



How do i "compile" my rc.conf file?
whidout restar the pc

thanks

_
MSN Oscar: tem um palpite de quem vai ganhar? 
http://www.msn.com.br/oscar/enquete/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: rc.conf syntax for ip alias on external nic

2003-02-10 Thread Matthew Emmerton

All aliases on the same subnet need to use a netmask of 255.255.255.255, as
described in the ifconfig man page.

This is what you should be doing:

ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0"
ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.255.255.255"
ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.255.255.255"

Matt

- Original Message -
From: "Redmond Militante" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:13 PM
Subject: rc.conf syntax for ip alias on external nic

hi

i have the following lines in my rc.conf, and i was wondering if my syntax
was ok:

---
#here, i'm setting the ip/subnet mask for outside nic interface for a dual
homed gateway box
ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0"

#declaring three network interfaces - outside nic interface for gateway,
internal interface for private subnet, and loopback
network_interfaces="xl0 xl1 lo0"

#not sure about the following lines: trying to alias two public ip's to the
outside nic interface for the gateway.  the gateway will use ipnat to nat
these public ip's to two internal client machines hooked up to the internal
interface - xl1- of the gateway box
ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.0.0.0"
ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.0.0.0"

#inside nic of gateway box
ifconfig_xl1="inet 192.168.1.1 netmask 255.0.0.0"
---

i'm having trouble i think with the two aliases to the outside nic of the
gateway.  it works fine when i have only one client hooked up to the
gateway, but when i have both clients hooked up to the gateway through a
hub, i have problems - mainly, i reboot both machines, and one machine
usually freezes on reboot.

any advice would be really appreciated

thanks
redmond


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: rc.conf

2002-12-17 Thread Aleksey I. Yurlov
Try to look in /etc/defaults/rc.conf variables that can be in /etc/rc.conf

for ex. if you need some tunnings about firewall - do something like this:
grep -i fire /etc/defaults/rc.conf >> /etc/rc.conf



Thomas Spreng wrote:


Hi,

On Tue, Dec 17, 2002 at 01:32:03PM +, Tiago Andre wrote:

>How do i compile my rc.conf


you dont need to, its read on each startup...

>Thanks
>Tiago Camilo
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message




--
Best regards, Aleksey I. Yurlov
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: rc.conf

2002-12-17 Thread Thomas Spreng
Hi,

On Tue, Dec 17, 2002 at 01:32:03PM +, Tiago Andre wrote:
> 
> How do i compile my rc.conf

you dont need to, its read on each startup...
> 
> Thanks
> Tiago Camilo
> 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: rc.conf

2002-12-17 Thread Paul Everlund
On Tue, 17 Dec 2002, Tiago Andre wrote:

> How do i compile my rc.conf

You don't compile that file. It is an editable text file and should
remain being that. This file keeps system dependent configuration
options that you can alter to suit your needs.

> Thanks
> Tiago Camilo

You're welcome!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



RE: rc.conf and adding a command

2002-07-16 Thread Allan McDonald

Hi,
I use the following, it works for me..

natd_program="/sbin/natd"
natd_enable="YES"
natd_interface="xl0"  # Public interface or IPaddress to use.
natd_flags="-s -m -redirect_port tcp 10.0.1.60:http 8080"


Regards

Allan McDonald
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Grant Cooper
Sent: Saturday, 6 July 2002 2:17 AM
To: FreeBSD-questions
Subject: rc.conf and adding a command


I've been working on this for awhile. From the command line I can run
/sbin/natd -n vr0 but I have read I can put this line into rc.conf. I've
tried alot of combinations but can seem to get it to click. I currently
have, natd_interface="vr0" I wrote a script to do this but I want to know
what I'm doing wrong.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message