]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-ceph: do not use systemd-run in sysvinit 9871/head
authorVladislav Odintsov <odivlad@gmail.com>
Mon, 4 Jul 2016 12:41:07 +0000 (15:41 +0300)
committerVladislav Odintsov <odivlad@gmail.com>
Tue, 5 Jul 2016 12:03:25 +0000 (15:03 +0300)
commit109cfc21680a27e5769523e556ff879da859f7b7
tree67b315e7e84aa84ec43647243639dc4e788192fe
parent1fd4f92a025e80092b8d08d9b7da2e0b73a52f0f
init-ceph: 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>
src/init-ceph.in