summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-07 08:47:34 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-07 08:47:34 +0000
commitdd9e8074f70f6077ee9aeac262f2a46a5a69bc7b (patch)
tree225de830ee7e7815ef3d22e10e37ec13fa20d135 /source3/web
parent1dac1ec030d8fb67f065979cc5a5a88a0c5d8038 (diff)
downloadsamba-dd9e8074f70f6077ee9aeac262f2a46a5a69bc7b.tar.gz
samba-dd9e8074f70f6077ee9aeac262f2a46a5a69bc7b.tar.bz2
samba-dd9e8074f70f6077ee9aeac262f2a46a5a69bc7b.zip
always restart nmbd and smbd when asked, even if they appear not to be
responding. They could be stuck (This used to be commit 8728c0bc94743935cec28caa83d93833ea3aa6a6)
Diffstat (limited to 'source3/web')
-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")) {