From 0887f16e7367b8f66f5a507a0d030361ad869785 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 7 Feb 2007 16:15:35 +0000 Subject: [PATCH] Delete the pidfile git-svn-id: https://svn.fhem.de/fhem/trunk@9 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 3 +++ fhem/fhem.pl | 1 + 2 files changed, 4 insertions(+) diff --git a/fhem/CHANGED b/fhem/CHANGED index e9e27504d..13f5a5a67 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -301,3 +301,6 @@ - feature: renamed fhz1000 to fhem - feature: added HISTORY and README.DEV - doc: Added description of attribute "model". + - bugfix: delete the pidfile when terminating. (reported by Martin and Peter) + - TODO: feature: add direction to the logs + - TODO: bugfix: more thorough serial line initialization diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 1da13ee22..79ab9b64b 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -713,6 +713,7 @@ CommandShutdown($$) my ($cl, $param) = @_; Log 0, "Server shutdown"; DoSavefile(); + unlink($pidfilename) if($pidfilename); exit(0); }