Skip to content

Commit 6d5af51

Browse files
committed
Merge pull request mattes#9 from TeamHG-Memex/master
Remove polipo pidfile before start
2 parents 21c690b + 56845fe commit 6d5af51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

start.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ def initialize(port, tor:)
109109
def start
110110
super
111111
# https://gitweb.torproject.org/torbrowser.git/blob_plain/1ffcd9dafb9dd76c3a29dd686e05a71a95599fb5:/build-scripts/config/polipo.conf
112+
if File.exists?(pid_file)
113+
File.delete(pid_file)
114+
end
112115
self.class.fire_and_forget(executable,
113116
"proxyPort=#{port}",
114117
"socksParentProxy=127.0.0.1:#{tor_port}",

0 commit comments

Comments
 (0)