Run/stop dnsmasq service in php

pull/16/head
necro-nemesis 7 years ago
parent 1340a4949a
commit 8e70d3b028

@ -602,7 +602,9 @@ function SaveTORAndVPNConfig()
Starting Lokinet background daemon process. Starting Lokinet background daemon process.
</div> </div>
<?php <?php
shell_exec('/etc/init.d/dnsmasq stop > /dev/null &');
$output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh start'); $output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh start');
shell_exec('/etc/init.d/dnsmasq start --bind-interfaces > /dev/null &');
echo "<pre><strong>$output</strong></pre>"; echo "<pre><strong>$output</strong></pre>";
} elseif (isset($_POST['StopLokinet'])) { } elseif (isset($_POST['StopLokinet'])) {
?> ?>

Loading…
Cancel
Save