summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index e2f73285b3..0bb4ad5b04 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1065,8 +1065,12 @@ extern void build_options(BOOL screen);
init_modules();
- /* possibly reload the services file. */
- reload_services(True);
+ /* Possibly reload the services file. Only worth doing in
+ * daemon mode. In inetd mode, we know we only just loaded this.
+ */
+ if (is_daemon) {
+ reload_services(True);
+ }
if (!init_account_policy()) {
DEBUG(0,("Could not open account policy tdb.\n"));