]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
init-ceph: Make sure daemon_is_running() checks the correct instance
authorJim Schutt <jaschut@sandia.gov>
Thu, 21 Oct 2010 16:32:09 +0000 (10:32 -0600)
committerSage Weil <sage@newdream.net>
Thu, 21 Oct 2010 18:18:08 +0000 (11:18 -0700)
commit44c786348857b2a24f93c20ff243ed44249dfa1c
treed487bd6e2f7144b2a4251329231cc8c58e40aa99
parent58f2f375622d532d4e2fa2c3f0cd8674dc008beb
init-ceph: Make sure daemon_is_running() checks the correct instance

When starting multiple instances of a daemon on a single host,
for unknown reasons /var/run/ceph/$type.$id.pid can hold a pid
for which /proc/$pid/cmdline identifies the right type of daemon,
but the wrong instance.  When this happens, all the configured
instances of a daemon are not running, but repeated invocations
of "init-ceph start" do not start the missing instances.

So, check for the correct daemon instance id as well as type when
testing if the daemon is up.

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage@newdream.net>
src/init-ceph.in