Chnaged perl to $^X for Martin for the Synology port
git-svn-id: https://svn.fhem.de/fhem/trunk@1498 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1132,7 +1132,7 @@ CommandShutdown($$)
|
|||||||
WriteStatefile();
|
WriteStatefile();
|
||||||
unlink($attr{global}{pidfilename}) if($attr{global}{pidfilename});
|
unlink($attr{global}{pidfilename}) if($attr{global}{pidfilename});
|
||||||
if($param && $param eq "restart") {
|
if($param && $param eq "restart") {
|
||||||
system("(sleep 2; exec perl $0 $attr{global}{configfile})&");
|
system("(sleep 2; exec $^X $0 $attr{global}{configfile})&");
|
||||||
}
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user