Make initscript exit if stop fails (Closes: #642946).
Last-Update: 2014-07-26 Gbp-Pq: Name initscript-return.patch
This commit is contained in:
parent
d46887901a
commit
aea6daef0e
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue