From 6fa582a04d47a4af5537dd2d9cdbc2861c8ec59a Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Mon, 18 Mar 2019 23:30:24 -0400 Subject: [PATCH] start/stop systemctl --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index e38aaef..31f3010 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 /home/pi/loki-network/lokinet.sh start' ); + exec('sudo systemctl start lokinet'); location.reload(); } elseif( isset($_POST['StopLokinet']) ) { echo "Attempting to stop Lokinet"; - exec( 'sudo pkill lokinet', $return ); + exec('sudo systemctl stop lokinet'); location.reload(); } elseif( isset($_POST['GenerateLokinet']) ) { echo "Attempting to generate Lokinet";