tor now exits properly on STOP command
This commit is contained in:
parent
4510dbfd82
commit
50e6537e80
@ -72,6 +72,7 @@ HiddenServicePort 80 127.0.0.1:''' + str(self.hsPort) + '''
|
|||||||
torPidFile.close()
|
torPidFile.close()
|
||||||
return
|
return
|
||||||
def killTor(self):
|
def killTor(self):
|
||||||
|
'''properly kill tor based on pid saved to file'''
|
||||||
try:
|
try:
|
||||||
pid = open('data/torPid.txt', 'r')
|
pid = open('data/torPid.txt', 'r')
|
||||||
pidN = pid.read()
|
pidN = pid.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user