]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init.d: correcting rbdmap init order: 1587/head
authorDmitry Smirnov <onlyjob@member.fsf.org>
Wed, 2 Apr 2014 14:23:19 +0000 (01:23 +1100)
committerDmitry Smirnov <onlyjob@member.fsf.org>
Wed, 2 Apr 2014 14:25:28 +0000 (01:25 +1100)
 * Require "$remote_fs" since it guarantees /usr availability
   (rbd executable is in /usr/bin/rbd)
 * Speed-up init.d rbd mapping on machines acting as MON/OSD
   by starting rbdmap after /init.d/ceph (when possible) and
   shutting down rbd before ceph.
 * Map rbd devices before starting X (helpful when /home is mounted from rbd).

src/init-rbdmap

index 5486379f0a420b8a49eafdc3e86b042037f0fa74..a6f47b36229dc3c0bf31cc15c09ff78a873cd3e0 100755 (executable)
@@ -7,8 +7,11 @@
 
 ### BEGIN INIT INFO
 # Provides:          rbdmap
-# Required-Start:    $network
-# Required-Stop:     $network
+# Required-Start:    $network $remote_fs
+# Required-Stop:     $network $remote_fs
+# Should-Start:      ceph
+# Should-Stop:       ceph
+# X-Start-Before:    $x-display-manager
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Ceph RBD Mapping