From: Michael Tremer Date: Thu, 10 Jun 2021 14:01:36 +0000 (+0100) Subject: tor.cgi: Use new perl system functions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4a54c419d48d1d89a87a26164061df2a4cb633d;p=people%2Fms%2Fipfire-2.x.git tor.cgi: Use new perl system functions Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index f39c0d8da0..3349336aea 100644 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -873,9 +873,9 @@ sub BuildConfiguration() { # Restart the service. if (($settings{'TOR_ENABLED'} eq 'on') || ($settings{'TOR_RELAY_ENABLED'} eq 'on')) { - system("/usr/local/bin/torctrl restart &>/dev/null"); + &General::system("/usr/local/bin/torctrl", "restart"); } else { - system("/usr/local/bin/torctrl stop &>/dev/null"); + &General::system("/usr/local/bin/torctrl", "stop"); } # Update pid and memory daemonstats();