summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-12 21:49:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-12 21:49:35 +0000
commit0b1f7eac2d3dbf11f4f3232758dec567a6fdf4ff (patch)
tree03a7862b960d3ca8fac228fdebb2b8674f57289d /usr
parent04560a495f1b39cca39f031f3325cc29d1757123 (diff)
downloadpfsense-0b1f7eac2d3dbf11f4f3232758dec567a6fdf4ff.zip
pfsense-0b1f7eac2d3dbf11f4f3232758dec567a6fdf4ff.tar.gz
Surround $executable_name with {}
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_services.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index f3660eb..c957265 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -73,19 +73,19 @@ if($_GET['service'] <> "")
get_package_rcd_details($_GET['service'] . ".sh");
if($_GET['restartservice'] == "true") {
- mwexec("/sbin/killall $executable_name");
+ mwexec("/sbin/killall {$executable_name}");
mwexec("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh start");
$status = is_service_running($executable_name);
if($status == 1) {
$savemsg = "{$package_name} has been restarted.";
} else {
- $error_message = exec_command("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh");
+ $error_message = exec_command("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh start");
$savemsg = "There was a error restarting {$package_name}.<p>{$error_message}";
}
}
if($_GET['stopservice'] == "true") {
- mwexec("/sbin/killall $executable_name");
+ mwexec("/sbin/killall {$executable_name}");
$savemsg = "{$package_name} has been stopped.";
}
@@ -94,7 +94,7 @@ if($_GET['startservice'] == "true") {
if($status == 1) {
$savemsg = "{$package_name} has been started.";
} else {
- $error_message = exec_command("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh");
+ $error_message = exec_command("/bin/sh /usr/local/etc/rc.d/{$raw_name}.sh start");
$savemsg = "There was a error restarting {$package_name}.<p>{$error_message}";
}
OpenPOWER on IntegriCloud