Skip to content

Commit

Permalink
also fail service start if bus.config is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
smorovic committed Nov 12, 2015
1 parent 0fefba9 commit a3daac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/hltd.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def cleanup_mountpoints(remount=True):
os.makedirs(os.path.join(conf.bu_base_dir,conf.output_subdirectory))
except OSError:
pass
return True
return True
try:
process = subprocess.Popen(['mount'],stdout=subprocess.PIPE)
out = process.communicate()[0]
Expand Down Expand Up @@ -475,6 +475,7 @@ def cleanup_mountpoints(remount=True):
i+=1
else:
logger.warning('starting hltd without bus.config file!')
return False
#clean up suspended state
try:
if remount==True:os.popen('rm -rf '+conf.watch_directory+'/suspend*')
Expand Down

0 comments on commit a3daac4

Please sign in to comment.