From 5afe77ec5698596cbfb91a36a6a4cee4ce399485 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 10 Jul 2013 21:18:05 +0200 Subject: call rmpid() to delete the file which contains the pid pf pyAggr3g470r. --- source/pyAggr3g470r | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/pyAggr3g470r b/source/pyAggr3g470r index 23f13cbd..3755ad16 100755 --- a/source/pyAggr3g470r +++ b/source/pyAggr3g470r @@ -116,9 +116,8 @@ def stop(): except OSError as e: print(SERVICE + " unsuccessfully stopped") retval = False - os.unlink(os.path.join(PATH,"var", SERVICE + ".pid")) - print(SERVICE) - rmpid(processname=SERVICE) + finally: + rmpid(processname=SERVICE) return retval def usage(): -- cgit