]> 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:14:59 +0000 (18:14 -0700)
commit67b5193f73a2c9ec9e503ad3431473998217375d
tree38de2ca53a0a9efa2b4629728b22c679210cc6f3
parent7c241cfaa6c8c068bc9da8578ca00b9f4fc7567f
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>
(cherry picked from commit 3e0d9800767018625f0e7d797c812aa44c426dab)
src/init-ceph.in