From 1e9fc835b7c8d81b54b3167b520682858d896122 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Wed, 20 Mar 2019 11:37:50 -0400 Subject: [PATCH] return status --- includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 21bc646..858498d 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -601,7 +601,7 @@ function SaveTORAndVPNConfig(){ echo "Attempting to start Lokinet"; exec( 'sudo /home/pi/loki-network/lokicontrol.sh > /dev/null &' ); - /* exec( 'pidof lokinet | wc -l', $lokinetstatus); + exec( 'pidof lokinet | wc -l', $lokinetstatus); if( $lokinetstatus[0] == 0 ) { $status = '
Lokinet daemon is not running @@ -617,7 +617,6 @@ function SaveTORAndVPNConfig(){ $arrConfig[$arrLine[0]]=$arrLine[1]; } } -*/ } elseif( isset($_POST['StopLokinet']) ) { echo "Attempting to stop Lokinet";