summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index d10f59cc46..18e51a2e42 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1266,14 +1266,11 @@ extern void build_options(bool screen);
}
if (is_daemon && !_lp_disable_spoolss()) {
- const char *rpcsrv_type;
+ enum rpc_service_mode_e spoolss_mode = rpc_spoolss_mode();
/* start spoolss daemon */
/* start as a separate daemon only if enabled */
- rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", "spoolss",
- "embedded");
- if (strcasecmp_m(rpcsrv_type, "daemon") == 0) {
+ if (spoolss_mode == RPC_SERVICE_MODE_DAEMON) {
start_spoolssd(ev_ctx, msg_ctx);
}
}