summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-04-20 18:34:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:33 -0500
commit8a22b1f0ea81f06616a2dc41a138c5126359f009 (patch)
tree11bb7dd52a24d49a42b1cb5eb15ec9f7ddab7823 /source3/include
parent41824de773a9627ccf59b04b5a772ec395485919 (diff)
downloadsamba-8a22b1f0ea81f06616a2dc41a138c5126359f009.tar.gz
samba-8a22b1f0ea81f06616a2dc41a138c5126359f009.tar.bz2
samba-8a22b1f0ea81f06616a2dc41a138c5126359f009.zip
r22417: Refactor the various daemon run-mode options to make the semantics
of the various flags explicit. (This used to be commit 19c929c6330a50f278ac322ac5fcb83d03734ea2)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/popt_common.h11
1 files changed, 11 insertions, 0 deletions
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 */