]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commitdiff
start autobuild-ceph on gitbuilder_ceph_rpm targets 29/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 6 Mar 2015 09:30:03 +0000 (10:30 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 6 Mar 2015 09:30:03 +0000 (10:30 +0100)
Signed-off-by: Loic Dachary <loic@dachary.org>
README.md
fabfile.py

index 27758d08e8a79da879178a2d8134c9494ef1c9b5..082af2b3e8e15d14c4245a8ddd3572032eac7ac4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -19,9 +19,15 @@ continuously. There must be a password-less ssh access to the hostname
 and the <username> must have a password-less sudo.
 
 An upstart service named autobuild-ceph gets created on the host that runs
-the autobuilder. Use ``sudo stop autobuild-ceph``, ``sudo start
+the autobuilder. 
+
+If available, use ``sudo stop autobuild-ceph``, ``sudo start
 autobuild-ceph`` on the autobuilder host to manage the autobuilder.
 
+If stop/start do not work, ``/etc/init.d/autobuild-ceph stop``,
+``/etc/init.d/autobuild-ceph start`` will start the daemon: it is a
+simple shell script.
+
 To get a list of other available commands, run ``fab -l``.  Note
 that fabric expects to be able to ssh to the host you specify, so you 
 should already have ssh keys setup for that host.  If
index 524277c1cb925c2d98b98bc19c45f5a46a85db17..2b495d23768105f457294cbc2c413456ed0d169d 100644 (file)
@@ -750,6 +750,7 @@ def gitbuilder_ceph_rpm():
     hostname = run('hostname -s')
     flavor = hostname.split('-')[-1]
     _sync_to_gitbuilder('ceph', 'rpm', flavor)
+    sudo('start autobuild-ceph || /etc/init.d/autobuild-ceph start')
 
 def _gitbuilder_ceph_rpm(url, flavor):
     _rh_gitbuilder(