aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-07-10 21:14:35 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-07-10 21:14:35 +0200
commit37d264f04ca0e50357ba223db9e4a868cab77770 (patch)
treecab1356368fef8799321321b0532fb4463c777dd
parentattrgetter is not used (diff)
downloadnewspipe-37d264f04ca0e50357ba223db9e4a868cab77770.tar.gz
newspipe-37d264f04ca0e50357ba223db9e4a868cab77770.tar.bz2
newspipe-37d264f04ca0e50357ba223db9e4a868cab77770.zip
The file which contains the pid of the pyaggr3g470t process is now deleted after a service stop.
-rwxr-xr-xsource/pyAggr3g470r1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pyAggr3g470r b/source/pyAggr3g470r
index 1c972d06..23f13cbd 100755
--- a/source/pyAggr3g470r
+++ b/source/pyAggr3g470r
@@ -116,6 +116,7 @@ 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)
return retval
bgstack15