diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-12 22:10:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-12 22:10:30 +0000 |
commit | 918a6a58e6bdc235428603856d37d49888813061 (patch) | |
tree | d5533d8a9084b8bcc0d7e86a10b01fd98e147aa1 /usr/local/www | |
parent | 9bccbe857ed4bd009d134c37456ef401b1784749 (diff) | |
download | pfsense-918a6a58e6bdc235428603856d37d49888813061.zip pfsense-918a6a58e6bdc235428603856d37d49888813061.tar.gz |
Sleep after killall
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/status_services.php | 2 |
1 files changed, 2 insertions, 0 deletions
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}."; |