From 09ee07f402c35d41b47cd72240cf4278f97e3f89 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Wed, 20 Mar 2019 11:33:40 -0400 Subject: [PATCH] start batch directly --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 88ba3fe..2dd9fcc 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -599,7 +599,7 @@ function SaveTORAndVPNConfig(){ } } elseif( isset($_POST['StartLokinet']) ) { echo "Attempting to start Lokinet"; - exec( 'sudo systemctl start lokinet' ); + exec( 'sudo lokicontrol.sh > /dev/null &' ); /* exec( 'pidof lokinet | wc -l', $lokinetstatus); @@ -621,7 +621,7 @@ function SaveTORAndVPNConfig(){ } elseif( isset($_POST['StopLokinet']) ) { echo "Attempting to stop Lokinet"; - exec( 'sudo sytemclt stop lokinet' ); + exec( 'sudo systemctl stop lokinet' ); // location.reload(); } elseif( isset($_POST['GenerateLokinet']) ) { echo "Attempting to generate Lokinet";