From f9410ecc82d0afc36f85ca4d3537bb45df15a82f Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Tue, 19 Mar 2019 22:18:25 -0400 Subject: [PATCH] run from directory --- includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index e46e0e1..64825e3 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -599,11 +599,11 @@ function SaveTORAndVPNConfig(){ } } elseif( isset($_POST['StartLokinet']) ) { echo "Attempting to start Lokinet"; - exec( 'sudo systemctl start lokinet', $return ); + exec( 'sudo /home/pi/loki-network/lokinet', $return ); location.reload(); } elseif( isset($_POST['StopLokinet']) ) { - echo 'Attempting to stop Lokinet', $return ; - exec("sudo systemctl stop lokinet"); + echo "Attempting to stop Lokinet"; + exec( 'sudo pkill lokinet', $return ); location.reload(); } elseif( isset($_POST['GenerateLokinet']) ) { echo "Attempting to generate Lokinet";