]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-ceph: wrap daemon startup with systemd-run when running under systemd
authorSage Weil <sage@redhat.com>
Wed, 16 Jul 2014 01:11:41 +0000 (18:11 -0700)
committerSage Weil <sage@redhat.com>
Wed, 16 Jul 2014 01:11:41 +0000 (18:11 -0700)
commit3e0d9800767018625f0e7d797c812aa44c426dab
tree0de3cbbaf4df29eb3e19587b9967241af7aafe0e
parentce72a3b5278707709a125e47f379f72d5883e1b1
init-ceph: wrap daemon startup with systemd-run when running under systemd

We want to make sure the daemon runs in its own systemd environment.  Check
for systemd as pid 1 and, when present, use systemd-run -r <cmd> to do
this.

Probably fixes #7627

Signed-off-by: Sage Weil <sage@redhat.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
Tested-by: Dan Mick <dan.mick@inktank.com>
src/init-ceph.in