summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-05-20 08:33:14 -0400
committerGünther Deschner <gd@samba.org>2011-03-29 16:03:51 +0200
commitfe0e079bc12ebe2e9204ca492337dc754e13832b (patch)
treef1ba1463db7c389ab1d0c1a102808066c81bdce2
parent043942720c8bbf8f00476da097a266f162f2edd9 (diff)
downloadsamba-fe0e079bc12ebe2e9204ca492337dc754e13832b.tar.gz
samba-fe0e079bc12ebe2e9204ca492337dc754e13832b.tar.bz2
samba-fe0e079bc12ebe2e9204ca492337dc754e13832b.zip
s3:spoolssd Start spoolss from smbd
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r--source3/smbd/server.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 17762e34c8..cc0bf1f02a 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -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);