1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

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

View File

@ -203,6 +203,6 @@ void Door::setDoorCallback(DoorCallback doorCallback)
void Door::_exec_and_log(const std::string &filename) 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()); ::system(cmd.c_str());
} }