You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2015/12/07 21:42:31 UTC

[08/10] git commit: updated refs/heads/master to e08294a

Merge pull request #1162 from greenqloud/pr-no-start

Add support for not (re)starting server after cloud-setup-management.This adds an option to the cloud-setup-management script to not start the management server after a successful configuration of it.

The primary motivation for this is to avoid circular dependency issues on systems that use systemd. When calling cloud-setup-management from a unit with a Before= directive on a service depending on
cloudstack-management, the process will deadlock because /usr/bin/service will delegate to systemd, which is waiting for the Before service to start.

Executing the cloud-setup-management script with this new `--no-start` option will simply leave the management server stopped after a successful configuration. systemd can then be bypassed with `export _SYSTEMCTL_SKIP_REDIRECT=1` and using the init.d script.

* pr/1162:
  Add support for not (re)starting server after cloud-setup-management.

Signed-off-by: Remi Bergsma <gi...@remi.nl>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e9de8659
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e9de8659
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e9de8659

Branch: refs/heads/master
Commit: e9de865989c12cf1d2cc324eaa6dee5b7e6e5970
Parents: 9ce1334 e0e65f5
Author: Remi Bergsma <gi...@remi.nl>
Authored: Mon Dec 7 21:06:18 2015 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Mon Dec 7 21:06:19 2015 +0100

----------------------------------------------------------------------
 client/bindir/cloud-setup-management.in      | 11 ++++---
 python/lib/cloudutils/globalEnv.py           |  6 ++--
 python/lib/cloudutils/serviceConfigServer.py | 35 +++++++++++++----------
 3 files changed, 31 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e9de8659/python/lib/cloudutils/serviceConfigServer.py
----------------------------------------------------------------------