tor now exits properly on STOP command

This commit is contained in:
Kevin Froman 2018-01-27 03:06:08 -06:00
parent 4510dbfd82
commit 50e6537e80
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ HiddenServicePort 80 127.0.0.1:''' + str(self.hsPort) + '''
torPidFile.close()
return
def killTor(self):
'''properly kill tor based on pid saved to file'''
try:
pid = open('data/torPid.txt', 'r')
pidN = pid.read()