niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
review request for bin/11294
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
Author Message
Mikhail Teterin
*nix forums addict


Joined: 23 Mar 2002
Posts: 56

PostPosted: Thu Mar 28, 2002 6:35 pm    Post subject: Re: review request for bin/11294 Reply with quote

On 24 Mar, Dag-Erling Smorgrav wrote:
Quote:
Mikhail Teterin <mi@aldan.algebra.com> writes:
But this implementation has drawbacks, that mine does not, IMHO:

. the configuration is system wide -- which is not neccessarily
desirable;
[...]

This and all your other objections can be fixed using a global
variable that overrides the symlink (or an API function that sets the
target host).

My primary objection is that the problem you are solving -- logging to
some other host by default -- is different from mine -- logging to some
other host at the caller's discretion. Yes, the caller can call the new
API function you suggest (or set a global variable itself, which is
uglier, IMHO).

But the only drawback of my idea, that was pointed out so far is that
it _adds a new API call_. If such an addition _can_ be tolerated -- and
it looks from your response like it can -- I think, solving my problem
your way is inferior to my proposed solution. Which is not to say, the
solution you provided is inferior over all -- it is just for a different
problem.

-mi



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Mikhail Teterin
*nix forums addict


Joined: 23 Mar 2002
Posts: 56

PostPosted: Tue Mar 26, 2002 6:26 pm    Post subject: Re: review request for bin/11294 Reply with quote

On 24 Mar, Dag-Erling Smorgrav wrote:
Quote:
Mikhail Teterin <mi@aldan.algebra.com> writes:
But this implementation has drawbacks, that mine does not, IMHO:

. the configuration is system wide -- which is not neccessarily
desirable;
[...]

This and all your other objections can be fixed using a global
variable that overrides the symlink (or an API function that sets the
target host).

My primary objection is that the problem you are solving -- logging to
some other host by default -- is different from mine -- logging to some
other host at the caller's discretion. Yes, the caller can call the new
API function you suggest (or set a global variable itself, which is
uglier, IMHO).

But the only drawback of my idea, that was pointed out so far is that
it _adds a new API call_. If such an addition _can_ be tolerated -- and
it looks from your response like it can -- I think, solving my problem
your way is inferior to my proposed solution. Which is not to say, the
solution you provided is inferior over all -- it is just for a different
problem.

-mi




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Dag-Erling Smorgrav
*nix forums Guru Wannabe


Joined: 23 Mar 2002
Posts: 110

PostPosted: Sun Mar 24, 2002 4:04 am    Post subject: Re: review request for bin/11294 Reply with quote

Mikhail Teterin <mi@aldan.algebra.com> writes:
Quote:
But this implementation has drawbacks, that mine does not, IMHO:

. the configuration is system wide -- which is not neccessarily
desirable;
[...]

This and all your other objections can be fixed using a global
variable that overrides the symlink (or an API function that sets the
target host).

DES
--
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Mikhail Teterin
*nix forums addict


Joined: 23 Mar 2002
Posts: 56

PostPosted: Sun Mar 24, 2002 12:37 am    Post subject: Re: review request for bin/11294 Reply with quote

On 23 Mar, Dag-Erling Smorgrav wrote:
Quote:
Here's a patch. To log to a remote host, make /etc/loghost a symlink
to its name or IP address ('ln -fs 10.0.5.14 /etc/loghost').

But this implementation has drawbacks, that mine does not, IMHO:

. the configuration is system wide -- which is not neccessarily
desirable;
. logger(1) -- and any other application, which wants this
functionalitystill needs its own implementation;

Most importantly, however, your design goal (allow to specify loghost
different from localhost) is different from mine. I wanted to add
an API call to log directly to another host -- at an application's
discretion...

My API call will not even add any new bloat to the OS -- whatever is
added to the libc is removed from the logger(1) :-)

Your idea (and a similar one by Joe Abley, where an env-variable is used
instead of a symlink) can then be implemented using this same new API
call I proposed.

-mi



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Dag-Erling Smorgrav
*nix forums Guru Wannabe


Joined: 23 Mar 2002
Posts: 110

PostPosted: Sat Mar 23, 2002 9:52 pm    Post subject: Re: review request for bin/11294 Reply with quote

Here's a patch. To log to a remote host, make /etc/loghost a symlink
to its name or IP address ('ln -fs 10.0.5.14 /etc/loghost').

DES
--
Dag-Erling Smorgrav - des@ofug.org
Back to top
Mikhail Teterin
*nix forums addict


Joined: 23 Mar 2002
Posts: 56

PostPosted: Sat Mar 23, 2002 8:19 pm    Post subject: Re: review request for bin/11294 Reply with quote

On 23 Mar, Joe Abley wrote:
Quote:

On Saturday, March 23, 2002, at 02:28 , Mikhail Teterin wrote:

The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294

the -h option to logger(1) is present in 4-STABLE.

It is, but the needed functionality is implemented entirely in the
logger(1) itself. So for another program to have it, it needs to
implement its own. Back three years ago, I needed to do such a thing,
and figured this is something, that should be available system-wide.
Hence this PR...

-mi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Dag-Erling Smorgrav
*nix forums Guru Wannabe


Joined: 23 Mar 2002
Posts: 110

PostPosted: Sat Mar 23, 2002 7:28 pm    Post subject: Re: review request for bin/11294 Reply with quote

Mikhail Teterin <mi@aldan.algebra.com> writes:
Quote:
The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294

The idea is good but the implementation sucks. It should be possible
to configure syslog(3) to send to a remote host, without the need for
new library functions. This could be done by modifying connectlog()
to check a config file (or just a symlink in /etc, malloc.conf(5)-
style) and open a UDP socket instead of a Unix socket. You can set
the default destination address for a datagram socket with connect(2),
so vsyslog(3) doesn't need to know anything about it. Of course, this
assumes that the syslog(3) packet format is the same for local and
remote logging.

We also need to somehow fix the problem where rapid bursts of messages
will overflow the syslogd(Cool socket and end up on the console instead
(this forced me to disable debugging messages in the default libpam
build; messages that syslogd(Cool would normally have suppressed ended
up on the console). I'm not sure how to fix it, though.

DES
--
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Joe Abley
*nix forums beginner


Joined: 23 Mar 2002
Posts: 5

PostPosted: Sat Mar 23, 2002 7:28 pm    Post subject: Re: review request for bin/11294 Reply with quote

On Saturday, March 23, 2002, at 02:28 , Mikhail Teterin wrote:

Quote:
The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294

the -h option to logger(1) is present in 4-STABLE.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Alfred Perlstein
*nix forums addict


Joined: 19 Mar 2002
Posts: 67

PostPosted: Sat Mar 23, 2002 7:28 pm    Post subject: Re: review request for bin/11294 Reply with quote

* Mikhail Teterin <mi@aldan.algebra.com> [020323 11:29] wrote:
Quote:
The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294

IMHO, it may be usefull for an embedded installation, that does not want
to run syslogd locally, but wishes to be able to log messages to a remote
host.

Wouldn't it make sense to just do this via a config file of some
sort? This would allow one to modify behavior without recompiling
the binaries. :)

--
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Mikhail Teterin
*nix forums addict


Joined: 23 Mar 2002
Posts: 56

PostPosted: Sat Mar 23, 2002 7:28 pm    Post subject: review request for bin/11294 Reply with quote

The PR is nearly 3 years old. Could someone, please, review the proposed
improvement:

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294

IMHO, it may be usefull for an embedded installation, that does not want
to run syslogd locally, but wishes to be able to log messages to a remote
host.

Thanks!

-mi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 5:23 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts smbmount: 20381: session request to *SMBSERVER failed (No... lunc networking 0 Wed Jul 19, 2006 10:52 am
No new posts Review O'Reilly MySQL backup chapter? Curtis Preston MySQL 0 Mon Jul 17, 2006 3:35 am
No new posts The Week In Review (alt.os.linux.slackware) (Sun Jul 16 0... stats@abnormalpenguin.com Slackware 0 Sat Jul 15, 2006 6:34 pm
No new posts Networking Ping Request timed out error littleminxchick@aol.com networking 1 Fri Jul 14, 2006 10:10 pm
No new posts How to create a new user account: Request Example Of How ... clusardi2k@aol.com VMS 3 Wed Jul 12, 2006 4:33 pm

Debt Consolidation | Debt Consolidation | Pacotes Reveillon Salvador | Car salvage | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2405s ][ Queries: 20 (0.1017s) ][ GZIP on - Debug on ]