now kill tor more often when shutting down, use own tor data directory, and check for api crash to stop daemon

This commit is contained in:
Kevin 2018-04-21 20:53:12 -05:00
parent c0e08eae79
commit 0ce3c7d940
3 changed files with 27 additions and 3 deletions

View file

@ -550,6 +550,11 @@ class Onionr:
return
def get_hostname(self):
return open('./data/hs/hostname', 'r').read()
retVal = ''
try:
with open('./data/hs/hostname', 'r') as hostname:
retval = retVal.read()
except FileNotFoundError:
return retVal
Onionr()