]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
init-radosgw.sysv: Support systemd for starting the gateway 2486/head
authorJuanJose 'JJ' Galvez <jgalvez@redhat.com>
Mon, 15 Sep 2014 03:38:20 +0000 (20:38 -0700)
committerJuanJose 'JJ' Galvez <jgalvez@redhat.com>
Mon, 15 Sep 2014 03:38:20 +0000 (20:38 -0700)
commitddd52e87b25a6861d3b758a40d8b3693a751dc4d
tree913b657d1106e7bdd8f74360f726e8551e0eb979
parentd888753c0e23dcb19bb159c84bd48f8e71483ea6
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>
src/init-radosgw.sysv