summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-22 12:28:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:11 -0500
commite24b67fdd52dfa7f3dce9f380faf9f731a8e46e3 (patch)
treefa7abf9960f86626f4a6a55699e210d18fa9b505
parent8dd00920ef8f9e6dce9bfb80c45ae46c2a562abd (diff)
downloadsamba-e24b67fdd52dfa7f3dce9f380faf9f731a8e46e3.tar.gz
samba-e24b67fdd52dfa7f3dce9f380faf9f731a8e46e3.tar.bz2
samba-e24b67fdd52dfa7f3dce9f380faf9f731a8e46e3.zip
r24625: add '-D' option to winbindd
TODO: don't allow '-i -D' and '-D -i' on all server binaries in the SAMBA_3_2 branch! The &server_mode patch makes this difficult to check... metze (This used to be commit 102bb0fc17d6dec102d628f1051675a1ae5a9c27)
-rw-r--r--source3/nsswitch/winbindd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 56e20b78c7..f89d86172a 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -977,6 +977,7 @@ int main(int argc, char **argv, char **envp)
{ "stdout", 'S', POPT_ARG_VAL, &log_stdout, True, "Log to stdout" },
{ "foreground", 'F', POPT_ARG_VAL, &server_mode, SERVER_MODE_FOREGROUND, "Daemon in foreground mode" },
{ "no-process-group", 0, POPT_ARG_VAL, &no_process_group, True, "Don't create a new process group" },
+ { "daemon", 'D', POPT_ARG_VAL, &server_mode, SERVER_MODE_DAEMON, "Become a daemon (default)" },
{ "interactive", 'i', POPT_ARG_VAL, &server_mode, SERVER_MODE_INTERACTIVE, "Interactive mode" },
{ "no-caching", 'n', POPT_ARG_VAL, &opt_nocache, True, "Disable caching" },
POPT_COMMON_SAMBA