Make initscript exit if stop fails (Closes: #642946).

Last-Update: 2014-07-26

Gbp-Pq: Name initscript-return.patch
This commit is contained in:
Daniel Baumann 2013-10-21 17:23:33 +02:00 committed by Lu zhiping
parent d46887901a
commit aea6daef0e
1 changed files with 2 additions and 4 deletions

View File

@ -135,10 +135,8 @@ start() {
stop() {
echo -n "Stopping cgconfig service: "
cgclear
rm -f "$lockfile"
log_success_msg
return 0
cgclear && rm -f "$lockfile" && log_success_msg && return 0
exit 1
}
trapped() {