On Sat, Jun 16, 2012 at 04:50:40AM +0200, Guillem Jover wrote: > On Fri, 2012-06-15 at 16:06:24 -0500, Jonathan Nieder wrote: > > Marc Haber wrote: > > > On Thu, May 19, 2011 at 05:05:33PM +0100, Nicholas Bamber wrote: > > > > >> It would be nice to have --stderr, --stdout and --stdin options to > > >> control > > >> the IO of the daemon process. > > > > > > +1! > > > Can you say a little more? What daemon, what workaround are you using > > instead, can you think of any possible downsides and how do you suggest > > mitigating them, etc? > > This is related to improper âdaemonsâ that need the s-s-d --background > option
Yes, exactly. Atop, in my case. > I was looking into this recently and came to the conclusion that it > makes more sense to ask s-s-d to not close the file descriptors, which > would allow the caller to setup any (complex) redirections on their > own, and needs less options from s-s-d side. Would it be possible to simply write s-s-d --no-close --background daemon -- $OPTS > /var/log/mydaemon.log with this option, or would I get into quoting hell? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org