s.requireResultCode(Predicates.or(Predicates.equalTo(0), Predicates.equalTo(1)));
} else if (STOPPING.equals(phase)) {
s.body.append(
"export PID=`cat "+pidFile+"`",
"[[ -n \"$PID\" ]] || exit 0",
<BUG>BashCommands.sudoAsUser(processOwner, "kill $PID"),
BashCommands.sudoAsUser(processOwner, "kill -9 $PID"),
"rm -f "+pidFile</BUG>
);
} else if (KILLING.equals(phase)) {

s.requireResultCode(Predicates.or(Predicates.equalTo(0), Predicates.equalTo(1)));
} else if (STOPPING.equals(phase)) {
s.body.append(
"export PID=`cat "+pidFile+"`",
"[[ -n \"$PID\" ]] || exit 0",
processOwner != null ? BashCommands.sudoAsUser(processOwner, "kill $PID") : "kill $PID",
processOwner != null ? BashCommands.sudoAsUser(processOwner, "kill -9 $PID") : "kill -9 $PID",
"rm -f "+pidFile
);
} else if (KILLING.equals(phase)) {
