diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 2cc201b6b..a75f49427 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -445,6 +445,8 @@ if(int(@ARGV) > 1 && $ARGV[$#ARGV] ne "-i") { ################################################### +SignalHandling(); + ################################################### # Windows Service Support: install/remove or start the fhem service if($^O =~ m/Win/) { @@ -524,8 +526,6 @@ if($cfgRet) { } -SignalHandling(); - my $pfn = $attr{global}{pidfilename}; if($pfn) { die "$pfn: $!\n" if(!open(PID, ">$pfn"));