aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-07-10 21:18:05 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-07-10 21:18:05 +0200
commit5afe77ec5698596cbfb91a36a6a4cee4ce399485 (patch)
tree94405fdece615b6aa5f4012329ce16a462740419 /source
parentThe file which contains the pid of the pyaggr3g470t process is now deleted af... (diff)
downloadnewspipe-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')
-rwxr-xr-xsource/pyAggr3g470r5
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():
bgstack15