This avoids an error if the daemon was running already, and is
already being done with the other services.
Signed-off-by: Tommi Virtanen <tv@inktank.com>
subprocess.check_call(
args=[
'initctl',
- 'start',
+ # use emit, not start, because start would fail if the
+ # instance was already running
+ 'emit',
# since the daemon starting doesn't guarantee much about
# the service being operational anyway, don't bother
# waiting for it
description "Ceph OSD"
+start on ceph-osd
stop on runlevel [!2345]
respawn