From 1ea2d39f5afea852b08ae36c4f6ea90ac9d59c26 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Fri, 6 Mar 2015 10:30:03 +0100 Subject: [PATCH] start autobuild-ceph on gitbuilder_ceph_rpm targets Signed-off-by: Loic Dachary --- README.md | 8 +++++++- fabfile.py | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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( -- 2.39.5