This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: introduce nscd --foreground, for systemd use


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]