diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-10 21:18:05 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-10 21:18:05 +0200 |
commit | 5afe77ec5698596cbfb91a36a6a4cee4ce399485 (patch) | |
tree | 94405fdece615b6aa5f4012329ce16a462740419 /source/pyAggr3g470r | |
parent | The file which contains the pid of the pyaggr3g470t process is now deleted af... (diff) | |
download | newspipe-5afe77ec5698596cbfb91a36a6a4cee4ce399485.tar.gz newspipe-5afe77ec5698596cbfb91a36a6a4cee4ce399485.tar.bz2 newspipe-5afe77ec5698596cbfb91a36a6a4cee4ce399485.zip |
call rmpid() to delete the file which contains the pid pf pyAggr3g470r.
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(): |