scheduler monitor (monitor_db_babysitter): Add --background option
commit2b095237a634a9865e324b5b46c15b089e64ba67
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Wed, 25 May 2011 20:12:12 +0000 (25 20:12 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Wed, 25 May 2011 20:12:12 +0000 (25 20:12 +0000)
treeb64f6ecfd7671cef31d0bd0c256f070a8ad963f2
parente30230fce338869dcb7ae3c8a0ea7452af6d88c8
scheduler monitor (monitor_db_babysitter): Add --background option

The init script libraries for Red Hat based systems don't contain
the start-stop-daemon function present on /lib/lsb/init-functions,
commonly present on debian/ubuntu boxes. So, in order to implement
a init script for RH-based systems, introduce the --background
option for the scheduler monitor, which will fork it and detach it
from the parent terminal. In order to do that, defer the logging
configuration a little, also modify the interfaces for the logging
config functions of this module a little.

Signed-off-by: James Laska <jlaska@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5380 592f7852-d20e-0410-864c-8624ca9c26a4
scheduler/babysitter_logging_config.py
scheduler/monitor_db_babysitter