Revision 49d43244

b/daemons/daemon-util.in
121 121
check() {
122 122
  if [[ "$#" -lt 1 ]]; then
123 123
    echo 'Missing daemon name.' >&2
124
    exit 1
124
    return 1
125 125
  fi
126 126

  
127 127
  local name="$1"; shift
......
134 134
start() {
135 135
  if [[ "$#" -lt 1 ]]; then
136 136
    echo 'Missing daemon name.' >&2
137
    exit 1
137
    return 1
138 138
  fi
139 139

  
140 140
  local name="$1"; shift
......
155 155
stop() {
156 156
  if [[ "$#" -lt 1 ]]; then
157 157
    echo 'Missing daemon name.' >&2
158
    exit 1
158
    return 1
159 159
  fi
160 160

  
161 161
  local name="$1"; shift

Also available in: Unified diff