From 918a6a58e6bdc235428603856d37d49888813061 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 12 Jun 2005 22:10:30 +0000 Subject: Sleep after killall --- usr/local/www/status_services.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr/local/www/status_services.php') diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index c35ace7..240e933 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -74,6 +74,7 @@ if($_GET['service'] <> "") if($_GET['restartservice'] == "true") { mwexec("/usr/bin/killall {$executable_name}"); + sleep(1); mwexec("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh start"); $status = is_service_running($executable_name); if($status == 1) { @@ -86,6 +87,7 @@ if($_GET['restartservice'] == "true") { if($_GET['stopservice'] == "true") { mwexec("/usr/bin/killall {$executable_name}"); + sleep(1); $status = is_service_running($executable_name); if($status == 1) { $savemsg = "There was an error stopping {$package_name} - {$executable_name}."; -- cgit v1.1