diff options
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 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; |