diff options
Diffstat (limited to 'source/pyAggr3g470r')
-rwxr-xr-x | source/pyAggr3g470r | 5 |
1 files changed, 2 insertions, 3 deletions
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(): |