Door: Redirect output to logfile

And use nohup for detached call.

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
Ralf Ramsauer 2016-07-20 20:33:54 +02:00
parent c058e1e4d0
commit 951e1de987
1 changed files with 1 additions and 1 deletions

View File

@ -203,6 +203,6 @@ void Door::setDoorCallback(DoorCallback doorCallback)
void Door::_exec_and_log(const std::string &filename)
{
const std::string cmd = filename + " &";
const std::string cmd = "nohup " + filename + " &>> " + _logfile_scripts;
::system(cmd.c_str());
}