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() {
|
stop() {
|
||||||
echo -n "Stopping cgconfig service: "
|
echo -n "Stopping cgconfig service: "
|
||||||
cgclear
|
cgclear && rm -f "$lockfile" && log_success_msg && return 0
|
||||||
rm -f "$lockfile"
|
exit 1
|
||||||
log_success_msg
|
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trapped() {
|
trapped() {
|
||||||
|
|
Loading…
Reference in New Issue