]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Use sysV init script directly
authorOwen Synge <osynge@suse.com>
Tue, 3 Feb 2015 16:58:09 +0000 (17:58 +0100)
committerThorsten Behrens <tbehrens@suse.com>
Wed, 11 Mar 2015 10:56:55 +0000 (11:56 +0100)
ceph-disk:SLE11sp3 /sbin/service cannot take paramteres that start with '--'
so use the init script directly.

Signed-off-by: Owen Synge <osynge@suse.com>
(cherry picked from commit fff38a0f18d1986f63a31e26d2b84749adab88af)

src/ceph-disk

index fb12b9b34af82fa68d32279f9c5a95a9805d8231..5c7959f376932849f1e250e53a6a31b226858b00 100755 (executable)
@@ -1862,14 +1862,9 @@ def start_daemon(
                     ],
                 )
         elif os.path.exists(os.path.join(path, 'sysvinit')):
-            if os.path.exists('/usr/sbin/service'):
-                svc = '/usr/sbin/service'
-            else:
-                svc = '/sbin/service'
             command_check_call(
                 [
-                    svc,
-                    'ceph',
+                    '/etc/init.d/ceph',
                     '--cluster',
                     '{cluster}'.format(cluster=cluster),
                     'start',