Markos Chandras f6deb4f62b scripts: scripts-library.sh: Fix dstat background process command
The correct way to background the dstat process is by using
(dstat...&) which creates a grandchild process which is inherited by
the init process once the child dies. The existing code didn't do that
since it was creating a background process of a child process so in
the end the child process couldn't be killed by Ansible and the job was
timing out. The dstat process is normally being killed as part of the
post-run playbook. Moreover, the '3' file descriptor probably doesn't
make much sense so we simply redirect stdout and stderr to the logfile
and make sure we close the stdin one before going to the background.

Change-Id: I62d18c196b9bcd267f28f091af7761e7a514e652
2018-03-01 16:50:54 +00:00
..
2017-05-27 19:50:14 +00:00
2017-08-17 10:19:35 +00:00
2017-08-28 20:26:55 +09:30
2017-11-02 18:29:16 +00:00
2017-05-27 19:50:14 +00:00