]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commit
setsid ./loop.sh to not be killed when sudo exits
authorLoic Dachary <ldachary@redhat.com>
Fri, 6 Mar 2015 10:30:29 +0000 (11:30 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 6 Mar 2015 10:35:35 +0000 (11:35 +0100)
commitcf06f0a2cee7d70bac0ef381db31eed715e38a52
tree0481624599f540bf8e800aa647250d736d1c2aae
parent50c17d3b0008ddc49fdf8eda7ee7516379ca007e
setsid ./loop.sh to not be killed when sudo exits

The sudo() of fabric will kill the process group to cleanup any
leftovers. If the loop.sh daemon does not create a process group it is
also killed. This is not an issue when start/stop is used because a
process group is created implicitly. But when /etc/init.d/autobuild-ceph
is run instead because start/stop does not work, the process group must
be explicitly created.

Signed-off-by: Loic Dachary <loic@dachary.org>
autobuild-ceph.init