diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-30 01:41:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-30 01:41:48 +0000 |
commit | 1dec547bf945338e7ee9ffadd9f864ce5cc3a978 (patch) | |
tree | 0246e302a75e3196762ee1fcb66a07f4f49a3166 /usr/local/www/status_services.php | |
parent | e814de4fe19d4a7bd3d943700be05a05922d4d3e (diff) | |
download | pfsense-1dec547bf945338e7ee9ffadd9f864ce5cc3a978.zip pfsense-1dec547bf945338e7ee9ffadd9f864ce5cc3a978.tar.gz |
Wait 5 seconds after stopping or starting a service to give the kill or starting process enough time to do its magic instead of marking the service as up when it really is not.
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-x | usr/local/www/status_services.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index bc2d9f8..a916807 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -46,15 +46,19 @@ if($_GET['mode'] == "restartservice" and $_GET['service']) { switch($_GET['service']) { case 'bsnmpd': services_snmpd_configure(); + sleep(5); break; case 'dnsmasq': services_dnsmasq_configure(); + sleep(5); break; case 'dhcpd': services_dhcpd_configure(); + sleep(5); break; default: restart_service($_GET['service']); + sleep(5); break; } $savemsg = "{$_GET['service']} has been restarted."; @@ -64,15 +68,19 @@ if($_GET['mode'] == "startservice" and $_GET['service']) { switch($_GET['service']) { case 'bsnmpd': services_snmpd_configure(); + sleep(5); break; case 'dnsmasq': services_dnsmasq_configure(); + sleep(5); break; case 'dhcpd': services_dhcpd_configure(); + sleep(5); break; default: start_service($_GET['service']); + sleep(5); break; } $savemsg = "{$_GET['service']} has been started."; |