This is the mail archive of the
mailing list for the glibc project.
Re: introduce nscd --foreground, for systemd use
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 23 Jan 2012 13:53:28 -0800 (PST)
- Subject: Re: introduce nscd --foreground, for systemd use
- References: <email@example.com>
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.