]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
sysvinit, upstart: handle symlinks to dirs in /var/lib/ceph/*
authorSage Weil <sage@inktank.com>
Tue, 2 Jul 2013 21:43:17 +0000 (14:43 -0700)
committerSage Weil <sage@inktank.com>
Tue, 2 Jul 2013 21:43:17 +0000 (14:43 -0700)
commit87c98e92d1375c8bc76196bbbf06f677bef95e64
tree45b1a506a1395c85fdb46cafe34f6533e6fea4e3
parenta4805efc1814c53678d74920814c7825bdcd8e64
sysvinit, upstart: handle symlinks to dirs in /var/lib/ceph/*

Match a symlink to a dir, not just dirs.  This fixes the osd case of e.g.,
creating an osd in /data/osd$id in which ceph-disk makes a symlink from
/var/lib/ceph/osd/ceph-$id.

Fix proposed by Matt Thompson <matt.thompson@mandiant.com>; extended to
include the upstart users too.

Fixes: #5490
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/ceph_common.sh
src/upstart/ceph-mds-all-starter.conf
src/upstart/ceph-mon-all-starter.conf
src/upstart/ceph-osd-all-starter.conf
src/upstart/radosgw-all-starter.conf