]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
init-radosgw.sysv: Support systemd for starting the gateway
authorJuanJose 'JJ' Galvez <jgalvez@redhat.com>
Mon, 15 Sep 2014 03:38:20 +0000 (20:38 -0700)
committerSage Weil <sage@redhat.com>
Mon, 15 Sep 2014 16:43:44 +0000 (09:43 -0700)
commit2422f9fd634c239a1159c99aa4a49cfb5c5d097f
treeb68ac88df8b2318c80f3c4e6df8d595d3a64b9bb
parent6070383bc2c433e36f7ab5dc1ec09a3e7439d523
init-radosgw.sysv: Support systemd for starting the gateway

When using RHEL7 the radosgw daemon needs to start under systemd.

Check for systemd running on PID 1. If it is then start
the daemon using: systemd-run -r <cmd>. pidof returns null
as it is executed too quickly, adding one second of sleep and
script reports startup correctly.

Signed-off-by: JuanJose 'JJ' Galvez <jgalvez@redhat.com>
(cherry picked from commit ddd52e87b25a6861d3b758a40d8b3693a751dc4d)
src/init-radosgw.sysv