extern void start_epmd(struct tevent_context *ev_ctx,
struct messaging_context *msg_ctx);
+extern void start_lsasd(struct event_context *ev_ctx,
+ struct messaging_context *msg_ctx);
+
#ifdef WITH_DFS
extern int dcelogin_atmost_once;
#endif /* WITH_DFS */
/* only start other daemons if we are running as a daemon
* -- bad things will happen if smbd is launched via inetd
* and we fork a copy of ourselves here */
- if (is_daemon && !interactive && !_lp_disable_spoolss()) {
- bool bgq = lp_parm_bool(-1, "smbd", "backgroundqueue", true);
+ if (is_daemon && !interactive) {
+ enum rpc_service_mode_e lsarpc_mode = rpc_lsarpc_mode();
- if (!printing_subsystem_init(ev_ctx, msg_ctx, true, bgq)) {
- exit(1);
+ if (lsarpc_mode == RPC_SERVICE_MODE_DAEMON) {
+ start_lsasd(ev_ctx, msg_ctx);
+ }
+
+ if (!_lp_disable_spoolss()) {
+ bool bgq = lp_parm_bool(-1, "smbd", "backgroundqueue", true);
+
+ if (!printing_subsystem_init(ev_ctx, msg_ctx, true, bgq)) {
+ exit(1);
+ }
}
} else if (!_lp_disable_spoolss()) {
if (!printing_subsystem_init(ev_ctx, msg_ctx, false, false)) {