$Log$
+ Revision 625.10 2004/09/03 04:34:30 ajc
+ * setup.c: when creating an inittab entry for slapd, use "-d 0" instead
+ of "-d 1" to avoid spewing messages to the console, while still remaining
+ in the foreground.
+
Revision 625.9 2004/09/03 04:19:17 ajc
* setup.c: Changes to inittab-twiddling to make it a bit more reliable
* ipc_c_tcp.c: don't send SIGHUP to children; it makes them very angry
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/* Generate a unique entry name for slapd */
generate_entry_name(slapd_init_entry);
- /* Now write it out to /etc/inittab */
- /* FIXME make it run as some non-root user */
+ /* Now write it out to /etc/inittab.
+ * FIXME make it run as some non-root user.
+ * The "-d 0" seems superfluous, but it's actually a way to make
+ * slapd run in the foreground without spewing messages to the console.
+ */
fp = fopen("/etc/inittab", "a");
if (fp == NULL) {
display_error(strerror(errno));
} else {
fprintf(fp, "# Start the OpenLDAP server for Citadel...\n");
- fprintf(fp, "%s:2345:respawn:%s -d 1 -f %s\n",
+ fprintf(fp, "%s:2345:respawn:%s -d 0 -f %s\n",
slapd_init_entry,
getenv("SLAPD_BINARY"),
getenv("LDAP_CONFIG")