]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk-activate, upstart: Use "initctl emit" to start OSDs.
authorTommi Virtanen <tv@inktank.com>
Mon, 17 Sep 2012 15:55:14 +0000 (08:55 -0700)
committerTommi Virtanen <tv@inktank.com>
Mon, 17 Sep 2012 17:40:53 +0000 (10:40 -0700)
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>
src/ceph-disk-activate
src/upstart/ceph-osd.conf

index 17e520dde222e058ce562333607adc3cb20bc5d7..225e2a664ea9b36a5c3ddda592b01d8cf972d88b 100755 (executable)
@@ -276,7 +276,9 @@ def upstart_start(
     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
index 7a976c2397a427f42ff858bda789ca5f1e383eb9..119ad000fc49be82bda3b5abb1a6319bc54b8073 100644 (file)
@@ -1,5 +1,6 @@
 description "Ceph OSD"
 
+start on ceph-osd
 stop on runlevel [!2345]
 
 respawn