Revision c4e5d11e

b/daemons/daemon-util.in
1 1
#!/bin/bash
2 2
#
3 3

  
4
# Copyright (C) 2009 Google Inc.
4
# Copyright (C) 2009, 2011 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
29 29
  ganeti-noded
30 30
  ganeti-masterd
31 31
  ganeti-rapi
32
  ganeti-confd
33 32
  )
34 33

  
34
if [[ "@CUSTOM_ENABLE_CONFD@" == True ]]; then
35
  DAEMONS+=( ganeti-confd )
36
fi
37

  
35 38
NODED_ARGS=
36 39
MASTERD_ARGS=
37 40
CONFD_ARGS=
......
163 166

  
164 167
  local name="$1"; shift
165 168

  
169
  if [[ "$name" == ganeti-confd &&
170
        "@CUSTOM_ENABLE_CONFD@" == False ]]; then
171
    echo 'ganeti-confd disabled at build time' >&2
172
    return 1
173
  fi
174

  
166 175
  # Convert daemon name to uppercase after removing "ganeti-" prefix
167 176
  local plain_name=${name#ganeti-}
168 177
  local ucname=$(tr a-z A-Z <<<$plain_name)

Also available in: Unified diff