summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-06-07 03:26:32 +0000
committerColin Smith <colin@pfsense.org>2005-06-07 03:26:32 +0000
commit53cf5533195676d14b48d28560a9d8d44e689e58 (patch)
tree7af4267e1b1ec08eb18d1482f04b00c70bbbe3f1 /usr
parentbd0fe65b1b118d36b3a6061b78a3fc3950a14e11 (diff)
downloadpfsense-53cf5533195676d14b48d28560a9d8d44e689e58.zip
pfsense-53cf5533195676d14b48d28560a9d8d44e689e58.tar.gz
Fix reboot method.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/xmlrpc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 13fb1c6..ec5ad1f 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -101,9 +101,10 @@ $reboot_doc = 'Basic XMLRPC wrapper for rc.reboot.';
$reboot_sig = array(array(boolean, string));
function reboot_xmlrpc($raw_params) {
+ require_once("util.inc");
$params = xmlrpc_params_to_php($raw_params);
if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", 'string'));
- exec("/etc/rc.reboot &");
+ mwexec_bg("/etc/rc.reboot");
return new XML_RPC_Response(new XML_RPC_Value(true, 'boolean'));
}
OpenPOWER on IntegriCloud