]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-radosgw: do not use systemd-run in sysvinit 9872/head
authorVladislav Odintsov <odivlad@gmail.com>
Mon, 4 Jul 2016 12:29:22 +0000 (15:29 +0300)
committerVladislav Odintsov <odivlad@gmail.com>
Mon, 10 Oct 2016 07:27:43 +0000 (10:27 +0300)
commitcca589fdb18147ea61e79b8d98b886ef30cd65d5
tree39b419725895221ef7b3b2a6c39f5eec89df4912
parent84adafe3fe6f57d49b4bdf1e036e1b686e6b0f55
init-radosgw: do not use systemd-run in sysvinit

`systemd-run` logic in initscripts was introduced because of ticket
http://tracker.ceph.com/issues/7627.

If we have systemd-based operating system, we should use systemd unit files
from systemd directory to start/stop ceph daemons.
Otherwise, `daemon()` from `/etc/init.d/functions` on systemd distro starts service
in `system.slice` and everything works well.

`systemd-run` can not be run on non-systemd distros, so it's not needed
on SysV systems.

also, ceph-disk is now able to run the "systemctl"
to enable and start the ceph-osd, and ceph-deploy is also now
playing well with systemd when it comes to ceph-mon and ceph-mds

Fixes: http://tracker.ceph.com/issues/16440
Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>
(cherry picked from commit 1fd4f92a025e80092b8d08d9b7da2e0b73a52f0f)
src/init-radosgw