Re: How to not start syslogd

2008-01-02 Thread [EMAIL PROTECTED]
On 31/12/2007, DAve [EMAIL PROTECTED] wrote:

 Small hint shown to me many years ago when enabling things in rc.conf.
 If I want to startup ipfilter for example (trimmed to avoid wrapping).

 bash-2.05b# cat /etc/defaults/rc.conf | grep ^ipfilter

 Returns the following,
 ipfilter_enable=NO# Set to YES to enable ipfilter
 ipfilter_program=/sbin/ipf# where the ipfilter program lives
 ipfilter_rules=/etc/ipf.rules # rules definition file for ipfilter,
 ipfilter_flags=   # additional flags for ipfilter

 If it looks like what you want then write it into your running rc.conf,

 cat /etc/defaults/rc.conf | grep ^ipfilter  /etc/rc.conf


cat not needed, as grep accepts filenames
and  as in
grep ^ipfilter /etc/defaults/rc.conf
or the above with | $PAGER appended
grep ^ipfilter /etc/defaults/rc.conf  /etc/rc.conf
grep ^allsc  /etc/defaults/rc.conf | less

sorry, just trying to prevent cat abuse

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


Re: How to not start syslogd

2007-12-31 Thread Jeffrey Goldberg

On Dec 30, 2007, at 10:44 PM, Bill Moran wrote:


Jeffrey Goldberg [EMAIL PROTECTED] wrote:



Putting

  syslogd_enable=NO

into /etc/rc.conf did not prevent it from starting.


The above works on every system I've done it to (which is quite a  
few).


I suspect you've either got a typo in your rc.conf, [...]


Yep.  It was a typo.  I should let this be a reminder to always copy  
and paste such things into email instead of retyping.  What I had in  
my rc.conf was really


  syslog_enable=NO

Notice the missing d'.

Thanks.

-j

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


Re: How to not start syslogd

2007-12-31 Thread DAve
Jeffrey Goldberg wrote:
 On Dec 30, 2007, at 10:44 PM, Bill Moran wrote:
 
 Jeffrey Goldberg [EMAIL PROTECTED] wrote:
 
 Putting

   syslogd_enable=NO

 into /etc/rc.conf did not prevent it from starting.

 The above works on every system I've done it to (which is quite a few).

 I suspect you've either got a typo in your rc.conf, [...]
 
 Yep.  It was a typo.  I should let this be a reminder to always copy and
 paste such things into email instead of retyping.  What I had in my
 rc.conf was really
 
   syslog_enable=NO
 
 Notice the missing d'.
 

Small hint shown to me many years ago when enabling things in rc.conf.
If I want to startup ipfilter for example (trimmed to avoid wrapping).

bash-2.05b# cat /etc/defaults/rc.conf | grep ^ipfilter

Returns the following,
ipfilter_enable=NO# Set to YES to enable ipfilter
ipfilter_program=/sbin/ipf# where the ipfilter program lives
ipfilter_rules=/etc/ipf.rules # rules definition file for ipfilter,
ipfilter_flags=   # additional flags for ipfilter

If it looks like what you want then write it into your running rc.conf,

cat /etc/defaults/rc.conf | grep ^ipfilter  /etc/rc.conf

Then you can edit to enable, add flags, etc. Cures the typos.

DAve


-- 
Google finally, after 7 years, provided a logo for
veterans. Thank you Google. What to do with my signature now?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to not start syslogd

2007-12-31 Thread Jeffrey Goldberg

On Dec 31, 2007, at 9:13 AM, DAve wrote:


Jeffrey Goldberg wrote:
Yep.  It was a typo.  I should let this be a reminder to always  
copy and

paste such things into email instead of retyping.



Small hint shown to me many years ago when enabling things in rc.conf.
If I want to startup ipfilter for example (trimmed to avoid wrapping).

bash-2.05b# cat /etc/defaults/rc.conf | grep ^ipfilter

Returns the following,
ipfilter_enable=NO# Set to YES to enable ipfilter
ipfilter_program=/sbin/ipf# where the ipfilter program lives
ipfilter_rules=/etc/ipf.rules # rules definition file for ipfilter,
ipfilter_flags=   # additional flags for ipfilter

If it looks like what you want then write it into your running  
rc.conf,


cat /etc/defaults/rc.conf | grep ^ipfilter  /etc/rc.conf

Then you can edit to enable, add flags, etc. Cures the typos.


Thank you!  That is a very nice tip.

-j

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


How to not start syslogd

2007-12-30 Thread Jeffrey Goldberg
I've installed and configured syslog-ng from ports and no longer wish  
to have the standard syslogd run.


Putting

  syslogd_enable=NO

into /etc/rc.conf did not prevent it from starting.

Of course I can see lots of ways of preventing syslogd from starting.   
I could remove the binary, I could remove /etc/rc.d/syslogd, but I  
would like to know if there is a recommended, easy to undo, and update  
resistant way of doing this.


Thanks,

-j

--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Re: How to not start syslogd

2007-12-30 Thread Bill Moran
Jeffrey Goldberg [EMAIL PROTECTED] wrote:

 I've installed and configured syslog-ng from ports and no longer wish  
 to have the standard syslogd run.
 
 Putting
 
syslogd_enable=NO
 
 into /etc/rc.conf did not prevent it from starting.

The above works on every system I've done it to (which is quite a few).

I suspect you've either got a typo in your rc.conf, or a corrupt/nonstandard
/etc/rc.d/syslogd file, or some other oddity preventing it from working.

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