From 8a22b1f0ea81f06616a2dc41a138c5126359f009 Mon Sep 17 00:00:00 2001 From: James Peach Date: Fri, 20 Apr 2007 18:34:33 +0000 Subject: r22417: Refactor the various daemon run-mode options to make the semantics of the various flags explicit. (This used to be commit 19c929c6330a50f278ac322ac5fcb83d03734ea2) --- source3/include/popt_common.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/include/popt_common.h') diff --git a/source3/include/popt_common.h b/source3/include/popt_common.h index 4c3facb48f..9db5ecc3d1 100644 --- a/source3/include/popt_common.h +++ b/source3/include/popt_common.h @@ -50,6 +50,17 @@ struct user_auth_info { int signing_state; }; +enum smb_server_mode { + /* Daemonize and manage our own sockets */ + SERVER_MODE_DAEMON, + /* Don't daemonize or manage sockets */ + SERVER_MODE_INETD, + /* Don't daemonize, but do manage sockets */ + SERVER_MODE_FOREGROUND, + /* Run in the foreground, log to stdout, don't fork children */ + SERVER_MODE_INTERACTIVE +}; + extern struct user_auth_info cmdline_auth_info; #endif /* _POPT_COMMON_H */ -- cgit