diff options
author | Günther Deschner <gd@samba.org> | 2009-04-21 16:18:51 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-24 13:38:43 +0200 |
commit | 16b2f4b55a80314aa733dd7f23543c1c3926223c (patch) | |
tree | 8478346a3bb62c52aff2cf2e87468d81b6a0f28e /source3/services | |
parent | aa26bdd71969610a4b6a5bdfdd735a1dab31a12c (diff) | |
download | samba-16b2f4b55a80314aa733dd7f23543c1c3926223c.tar.gz samba-16b2f4b55a80314aa733dd7f23543c1c3926223c.tar.xz 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/services/svc_spoolss.c b/source3/services/svc_spoolss.c index bb2b892c809..4a2cb789775 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; |