summaryrefslogtreecommitdiff
path: root/source3/services
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-21 16:18:51 +0200
committerGünther Deschner <gd@samba.org>2009-04-24 13:38:43 +0200
commit16b2f4b55a80314aa733dd7f23543c1c3926223c (patch)
tree8478346a3bb62c52aff2cf2e87468d81b6a0f28e /source3/services
parentaa26bdd71969610a4b6a5bdfdd735a1dab31a12c (diff)
downloadsamba-16b2f4b55a80314aa733dd7f23543c1c3926223c.tar.gz
samba-16b2f4b55a80314aa733dd7f23543c1c3926223c.tar.bz2
samba-16b2f4b55a80314aa733dd7f23543c1c3926223c.zip
s3-svcctl: indicate that the spooler is already running if it does.
Guenther
Diffstat (limited to 'source3/services')
-rw-r--r--source3/services/svc_spoolss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/services/svc_spoolss.c b/source3/services/svc_spoolss.c
index bb2b892c80..4a2cb78977 100644
--- a/source3/services/svc_spoolss.c
+++ b/source3/services/svc_spoolss.c
@@ -50,6 +50,10 @@ static WERROR spoolss_start( const char *service )
if ( _lp_disable_spoolss() )
return WERR_ACCESS_DENIED;
+ if (lp_get_spoolss_state() == SVCCTL_RUNNING) {
+ return WERR_SERVICE_ALREADY_RUNNING;
+ }
+
lp_set_spoolss_state( SVCCTL_RUNNING );
return WERR_OK;