Skip to content

Commit

Permalink
Use init.d to handle tor service - recommended on issue htrgouvea#27
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Sep 6, 2018
1 parent bb3010a commit a929fe2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .configs/arch-torrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CookieAuthFile /var/run/tor/control.authcookie

Log notice file /var/log/tor/log


ClientOnly 1
TransPort 9051
TransListenAddress 127.0.0.1
Expand Down
1 change: 0 additions & 1 deletion lib/Nipe/Functions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ sub install {
}

system ("sudo chmod 644 /etc/tor/torrc");
system ("sudo systemctl stop tor");
}

1;
4 changes: 2 additions & 2 deletions lib/Nipe/Start.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ sub new {

system ("sudo iptables -t filter -A OUTPUT -p udp -j REJECT");
system ("sudo iptables -t filter -A OUTPUT -p icmp -j REJECT");
system ("sudo systemctl start tor");
system ("sudo /etc/init.d/tor start > /dev/null");

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Nipe/Stop.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sub new {
system ("sudo iptables -t $table -F OUTPUT");
}

system("sudo systemctl stop tor");
system("sudo /etc/init.d/tor stop > /dev/null");

return true;
}
Expand Down

0 comments on commit a929fe2

Please sign in to comment.