Logging in future upstart
Matthias Urlichs
smurf at smurf.noris.de
Sun Mar 22 07:56:59 GMT 2009
Hi,
> To do this, we must assume ptracing all the services isn't horrible and
> stupid.
I'd contend that this assumption, at least after the service is up and
running, is wrong.
My preference would be to turn off SIGPIPE. This can be done trivially
by creating a named pipe for the logger and opening it in O_RDWR mode,
but without subsequently reading from it. :-P
If upstart then (to prevent deadlocks) reads+ignores the data only when
the logger process is _not_ up and running, you get exactly what you want.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf at smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
v4sw7$Yhw6+8ln7ma7u7L!wl7DUi2e6t3TMWb8HAGen6g3a4s6Mr1p-3/-6 hackerkey.com
- -
In fact, when you get right down to it, almost every explanation
Man came up with for *anything* until about 1926 was stupid.
-- Dave Barry
More information about the upstart-devel
mailing list