mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 21:42:21 +03:00
fifo file removed while cleaning
This commit is contained in:
parent
4f9bfa992c
commit
5ec8022f81
1 changed files with 6 additions and 1 deletions
|
@ -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', '')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue