]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: Fix respawn (add path resolution) 1671/head
authorJohn Spray <john.spray@inktank.com>
Mon, 14 Apr 2014 16:14:42 +0000 (17:14 +0100)
committerJohn Spray <john.spray@inktank.com>
Tue, 15 Apr 2014 11:28:09 +0000 (12:28 +0100)
commitaa6df59e997ff3d070636263bb47386d29196713
tree35e37e4c2fa727c5de1785ff1b377df8ca3172ea
parent908fa5edccbc39a29352cf7aebdd99cca1b052ff
mds: Fix respawn (add path resolution)

Previously assumed that ceph-mds executable was in
PWD - now use /proc/self/exe to find the
executable whereever it may be.  Leave in old version
as a fallback for non-linux environments.

Also add a 'respawn' command so that it's easy to test
respawn with `ceph mds tell <id> respawn`

Fixes: #7966
src/mds/MDS.cc