diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-14 21:49:40 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-14 21:49:40 -0400 |
commit | 1d333258dc840cfdfa91d4d5566a9189e0ead9fe (patch) | |
tree | 68da71aa2427e130ff8f7d4556c07314daa86afc /usr/local/www/status_services.php | |
parent | 7ac5a4cb18367693e0a4c576cbcd907ee7d5ad67 (diff) | |
download | pfsense-1d333258dc840cfdfa91d4d5566a9189e0ead9fe.zip pfsense-1d333258dc840cfdfa91d4d5566a9189e0ead9fe.tar.gz |
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to include 2009 on files that I have asserted (C) on
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-x | usr/local/www/status_services.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index 1a13f4e..108a191 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -25,6 +25,10 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + pfSense_BUILDER_BINARIES: /usr/local/sbin/openvpn /usr/bin/killall /bin/ps + pfSense_MODULE: services +*/ ##|+PRIV ##|*IDENT=page-status-services @@ -33,7 +37,6 @@ ##|*MATCH=status_services.php* ##|-PRIV - require("guiconfig.inc"); require_once("service-utils.inc"); @@ -72,7 +75,7 @@ if($_GET['mode'] == "restartservice" and $_GET['service']) { upnp_action('restart'); break; case 'racoon': - exec("killall -9 racoon"); + exec("/usr/bin/killall -9 racoon"); sleep(1); vpn_ipsec_force_reload(); break; @@ -85,7 +88,7 @@ if($_GET['mode'] == "restartservice" and $_GET['service']) { killbypid($pidfile); sleep(1); $configfile = $g['varetc_path'] . "/openvpn_{$vpnmode}{$id}.conf"; - mwexec_bg("openvpn --config $configfile"); + mwexec_bg("/usr/local/sbin/openvpn --config $configfile"); } } break; @@ -128,7 +131,7 @@ if($_GET['mode'] == "startservice" and $_GET['service']) { $id = $_GET['id']; if (is_numeric($id)) { $configfile = $g['varetc_path'] . "/openvpn_{$vpnmode}{$id}.conf"; - mwexec_bg("openvpn --config $configfile"); + mwexec_bg("/usr/local/sbin/openvpn --config $configfile"); } } break; |