Re: log to multilog instead of file
richard lucassen <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Organization | CAM S&C |
| Message-ID | <[email protected]> |
On Thu, 27 May 2004 09:50:16 -0400 [email protected] (Paul Jarc) wrote: > richard lucassen <[email protected]> wrote: > > chmod 3755 /usr/local/sbin/X > > Why do you make it setgid and sticky? Oops, typo, I meant 1755. (and sticky because it is version 0.70) > > #!/bin/sh > > while true; do > > /usr/local/bin/setuidgid Xlog \ > > /usr/local/bin/multilog t /var/log/X > > done < /var/log/X/log.fifo > > #!/bin/sh > exec \ > /usr/local/bin/setuidgid Xlog \ > /usr/local/bin/multilog t /var/log/X < /var/log/X/log.fifo <shame> Stupid me. The while-true is obviously not necessary when supervised. </shame> > But now leave out the redirection, since you managed to get X writing > to the pipe set up by svscan. I think the use of /dev/stderr is a more elegant solution then the (mis)use of a fifo. Thanks! Richard. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAtgmJyG85G+teVsIRAqXxAKCjniNRRm1pC2y5J94Knb//QG4hMACgrj3n yBzX5P9fcxjEcK68Pomjxlw= =iX9J -----END PGP SIGNATURE-----