fifo file removed while cleaning

This commit is contained in:
Volkan Şahin 2016-07-21 18:04:00 +03:00
parent 4f9bfa992c
commit 5ec8022f81

View file

@ -25,7 +25,6 @@ class Commander(object):
params = args[0] params = args[0]
data = {} data = {}
if System.Ahenk.is_running() is True: if System.Ahenk.is_running() is True:
if len(params) > 1 and params[1] == 'clean': if len(params) > 1 and params[1] == 'clean':
@ -191,9 +190,15 @@ class Commander(object):
config.read(System.Ahenk.config_path()) config.read(System.Ahenk.config_path())
db_path = config.get('BASE', 'dbPath') db_path = config.get('BASE', 'dbPath')
if Util.is_exist('/tmp/liderahenk.fifo'):
Util.delete_file('/tmp/liderahenk.fifo')
if os.path.exists(db_path): if os.path.exists(db_path):
os.remove(db_path) os.remove(db_path)
#TODO remove pid file
config.set('CONNECTION', 'uid', '') config.set('CONNECTION', 'uid', '')
config.set('CONNECTION', 'password', '') config.set('CONNECTION', 'password', '')