9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] secstored output to /dev/cons
@ 2005-01-05 20:11 Heiko Dudzus
  2005-01-05 20:14 ` Charles Forsyth
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Dudzus @ 2005-01-05 20:11 UTC (permalink / raw)
  To: 9fans

auth/secstored prints out to /dev/cons. It is disturbing behind rio windows
on my cpu server.

Successively, I redirected its file descriptors into
/sys/log/secstored.  Even with fd0, fd1, fd2 redirected do the log
file, it prints to /dev/cons.

/proc/550/fd says, fd4 is connected to /dev/cons:

term% cat /proc/550/fd
/usr/bootes
  0 w  M    8 (0000000000011c97 0 00)  8192        0 /sys/log/secstored
  1 w  M    8 (0000000000011c97 0 00)  8192        0 /sys/log/secstored
  2 w  M    8 (0000000000011c97 0 00)  8192        0 /sys/log/secstored
  3 rw I    0 (000000000002018c 0 00)     0       15 /net/tcp/clone
  4 w  c    0 (0000000000000002 0 00)     0       51 #c/cons
  5 r  c    0 (0000000000000001 0 00)     0      256 /dev/bintime
term%

Why does secstored prints to fd4?  This isn't usual, is it?  Where do
you redirect the fd's when you start secstored?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] secstored output to /dev/cons
  2005-01-05 20:11 [9fans] secstored output to /dev/cons Heiko Dudzus
@ 2005-01-05 20:14 ` Charles Forsyth
  2005-01-05 20:24   ` Heiko Dudzus
  2005-01-05 21:31   ` Heiko Dudzus
  0 siblings, 2 replies; 7+ messages in thread
From: Charles Forsyth @ 2005-01-05 20:14 UTC (permalink / raw)
  To: 9fans

try creating /sys/log/secstore (make it append-only as well, chmod +a /sys/log/secstore),
and secstored should automatically put its logging output there, without explicit redirection.
if the log file doesn't exist, syslog writes it to /dev/cons



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] secstored output to /dev/cons
  2005-01-05 20:14 ` Charles Forsyth
@ 2005-01-05 20:24   ` Heiko Dudzus
  2005-01-05 21:31   ` Heiko Dudzus
  1 sibling, 0 replies; 7+ messages in thread
From: Heiko Dudzus @ 2005-01-05 20:24 UTC (permalink / raw)
  To: 9fans

> try creating /sys/log/secstore (make it append-only as well, chmod +a /sys/log/secstore),
> and secstored should automatically put its logging output there, without explicit redirection.
> if the log file doesn't exist, syslog writes it to /dev/cons

Ahh, ok. My /sys/log/secstored was
a-rw-rw-rw- M 9 sys sys 0 Jan  4 18:18 /sys/log/secstored

I'll try renaming it. Thanks.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] secstored output to /dev/cons
  2005-01-05 20:14 ` Charles Forsyth
  2005-01-05 20:24   ` Heiko Dudzus
@ 2005-01-05 21:31   ` Heiko Dudzus
  2005-01-05 21:38     ` andrey mirtchovski
  1 sibling, 1 reply; 7+ messages in thread
From: Heiko Dudzus @ 2005-01-05 21:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Charles Forsyth wrote:
> try creating /sys/log/secstore (make it append-only as well, chmod +a /sys/log/secstore),
> and secstored should automatically put its logging output there, without explicit redirection.
> if the log file doesn't exist, syslog writes it to /dev/cons

It works now, thanks.

Now, I see, this file is defined as log file in
/sys/src/cmd/auth/secstore/secstore.h.

I didn't have the idea to look there. ;-/

Regards, Heiko


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] secstored output to /dev/cons
  2005-01-05 21:31   ` Heiko Dudzus
@ 2005-01-05 21:38     ` andrey mirtchovski
  2005-01-05 23:22       ` Heiko Dudzus
  0 siblings, 1 reply; 7+ messages in thread
From: andrey mirtchovski @ 2005-01-05 21:38 UTC (permalink / raw)
  To: 9fans

> 
> I didn't have the idea to look there. ;-/
> 
> Regards, Heiko

if you could add a note to the man page and submit it as a patch it'll
be much easier to find next time :)

i am trying to remember how i created my /sys/log/secstore but i
can't.  there doesn't seem to be any discussion on 9fans...

andrey



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] secstored output to /dev/cons
  2005-01-05 21:38     ` andrey mirtchovski
@ 2005-01-05 23:22       ` Heiko Dudzus
  2005-01-05 23:29         ` andrey mirtchovski
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Dudzus @ 2005-01-05 23:22 UTC (permalink / raw)
  To: 9fans

> if you could add a note to the man page and submit it as a patch it'll
> be much easier to find next time :)
> 
> i am trying to remember how i created my /sys/log/secstore but i
> can't.  there doesn't seem to be any discussion on 9fans...

Done.

But perhaps it would be nicer to do it like it is done with all the
other log files: presented empty in a vanilla install (regardless if
needed or not)?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] secstored output to /dev/cons
  2005-01-05 23:22       ` Heiko Dudzus
@ 2005-01-05 23:29         ` andrey mirtchovski
  0 siblings, 0 replies; 7+ messages in thread
From: andrey mirtchovski @ 2005-01-05 23:29 UTC (permalink / raw)
  To: 9fans


> Done.
> 

thanks :)

> But perhaps it would be nicer to do it like it is done with all the
> other log files: presented empty in a vanilla install (regardless if
> needed or not)?

you can submit a zero-sized /sys/log/secstore with patch/create too,
it'll just complain that there's no original to compare it to



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-05 23:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-05 20:11 [9fans] secstored output to /dev/cons Heiko Dudzus
2005-01-05 20:14 ` Charles Forsyth
2005-01-05 20:24   ` Heiko Dudzus
2005-01-05 21:31   ` Heiko Dudzus
2005-01-05 21:38     ` andrey mirtchovski
2005-01-05 23:22       ` Heiko Dudzus
2005-01-05 23:29         ` andrey mirtchovski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).