From: Loic Dachary Date: Fri, 6 Mar 2015 09:30:03 +0000 (+0100) Subject: start autobuild-ceph on gitbuilder_ceph_rpm targets X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F29%2Fhead;p=autobuild-ceph.git start autobuild-ceph on gitbuilder_ceph_rpm targets Signed-off-by: Loic Dachary --- diff --git a/README.md b/README.md index 27758d0..082af2b 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,15 @@ continuously. There must be a password-less ssh access to the hostname and the 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 diff --git a/fabfile.py b/fabfile.py index 524277c..2b495d2 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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(