From 5ec8022f811e52403d43cd9d5329c55c03a0f899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Thu, 21 Jul 2016 18:04:00 +0300 Subject: [PATCH] fifo file removed while cleaning --- opt/ahenk/base/command/commander.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/opt/ahenk/base/command/commander.py b/opt/ahenk/base/command/commander.py index e932250..ed5f438 100644 --- a/opt/ahenk/base/command/commander.py +++ b/opt/ahenk/base/command/commander.py @@ -25,7 +25,6 @@ class Commander(object): params = args[0] data = {} - if System.Ahenk.is_running() is True: if len(params) > 1 and params[1] == 'clean': @@ -191,9 +190,15 @@ class Commander(object): config.read(System.Ahenk.config_path()) 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): os.remove(db_path) + #TODO remove pid file + + config.set('CONNECTION', 'uid', '') config.set('CONNECTION', 'password', '')