summaryrefslogtreecommitdiff
path: root/source3/web/statuspage.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web/statuspage.c')
-rw-r--r--source3/web/statuspage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c
index 359db5c80a..e9cda3bd70 100644
--- a/source3/web/statuspage.c
+++ b/source3/web/statuspage.c
@@ -134,8 +134,7 @@ void status_page(void)
TDB_CONTEXT *tdb;
if (cgi_variable("smbd_restart")) {
- if (smbd_running())
- stop_smbd();
+ stop_smbd();
start_smbd();
}
@@ -148,8 +147,7 @@ void status_page(void)
}
if (cgi_variable("nmbd_restart")) {
- if (nmbd_running())
- stop_nmbd();
+ stop_nmbd();
start_nmbd();
}
if (cgi_variable("nmbd_start")) {