diff options
author | Günther Deschner <gd@samba.org> | 2009-04-21 16:18:51 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-04-28 09:11:20 +0200 |
commit | 7e30a445b840bfa0ceb47f4c03812744ee69e78a (patch) | |
tree | 417257c67852f6ec280c65bcffaf7c93cc50a6b4 | |
parent | 8d6692a2d7cce1ebddc8b69a315c847ac6668d6f (diff) | |
download | samba-7e30a445b840bfa0ceb47f4c03812744ee69e78a.tar.gz |
s3-svcctl: indicate that the spooler is already running if it does.
Guenther
(cherry picked from commit 16b2f4b55a80314aa733dd7f23543c1c3926223c)
(cherry picked from commit 265e1fca1228776a0a7556ef854bfcc4130085b4)
-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; |