diff --git a/includes/functions.php b/includes/functions.php index 23ae8bd..43631a4 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -630,15 +630,16 @@ function SaveTORAndVPNConfig(){ Lokinet daemon is not running - '; - } else { - $status = '
Lokinet is running -
'; - } + +} +exec( 'pidof lokinet | wc -l', $lokinetstatus); +if( $lokinetstatus[0] == 0 ) { + $status = '
Lokinet daemon is not running +
'; +} else { + $status = '
Lokinet is running +
'; } sleep (5); echo $status;