introduce nscd --foreground, for systemd use

Roland McGrath roland@hack.frob.com
Mon Jan 23 22:03:00 GMT 2012


This seems generally sound to me.  But I'd like to know if there is any
existing precedent for an option letter and/or long option name for doing
this in another GNU utility.

> +/* Default is to daemonize.  Set to 1 to run in foreground in
> +   debugging mode, or negative to run in foreground but otherwise
> +   behave like a daemon, i.e., detach from terminal and use
> +   syslog.  */
> +static int run_in_foreground = 0;

Perhaps cleaner to have two bools.

> +	fprintf (stderr, _("further output sent to syslog\n"));

What's the point of this message?  It's not normal for daemon startup to
print anything to stderr in my experience.


Thanks,
Roland



More information about the Libc-alpha mailing list