mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 02:14: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:
parent
c058e1e4d0
commit
951e1de987
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user