mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
s3:spoolssd Start spoolss from smbd
Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
committed by
Günther Deschner
parent
043942720c
commit
fe0e079bc1
@ -40,6 +40,8 @@
|
||||
extern void start_epmd(struct tevent_context *ev_ctx,
|
||||
struct messaging_context *msg_ctx);
|
||||
|
||||
extern void start_spoolssd(void);
|
||||
|
||||
#ifdef WITH_DFS
|
||||
extern int dcelogin_atmost_once;
|
||||
#endif /* WITH_DFS */
|
||||
@ -1242,6 +1244,19 @@ extern void build_options(bool screen);
|
||||
smbd_messaging_context());
|
||||
}
|
||||
|
||||
if (is_daemon && !_lp_disable_spoolss()) {
|
||||
const char *rpcsrv_type;
|
||||
|
||||
/* 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(rpcsrv_type, "embedded") != 0) {
|
||||
start_spoolssd();
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_daemon) {
|
||||
/* inetd mode */
|
||||
TALLOC_FREE(frame);
|
||||
|
Reference in New Issue
Block a user