Revert back to using /etc/init.d

Don't change too many things at once.
This commit is contained in:
Joe Haig
2016-10-23 20:08:17 +01:00
parent d089dbfe43
commit 2d992fb4ac
5 changed files with 17 additions and 17 deletions

View File

@@ -412,25 +412,25 @@ function SaveTORAndVPNConfig(){
// TODO
} elseif( isset($_POST['StartOpenVPN']) ) {
echo "Attempting to start openvpn";
exec( 'sudo service openvpn start', $return );
exec( 'sudo /etc/init.d/openvpn start', $return );
foreach( $return as $line ) {
echo $line."<br />";
}
} elseif( isset($_POST['StopOpenVPN']) ) {
echo "Attempting to stop openvpn";
exec( 'sudo service openvpn stop', $return );
exec( 'sudo /etc/init.d/openvpn stop', $return );
foreach( $return as $line ) {
echo $line."<br />";
}
} elseif( isset($_POST['StartTOR']) ) {
echo "Attempting to start TOR";
exec( 'sudo service tor start', $return );
exec( 'sudo /etc/init.d/tor start', $return );
foreach( $return as $line ) {
echo $line."<br />";
}
} elseif( isset($_POST['StopTOR']) ) {
echo "Attempting to stop TOR";
exec( 'sudo service tor stop', $return );
exec( 'sudo /etc/init.d/tor stop', $return );
foreach( $return as $line ) {
echo $line."<br />";
}