From 88dd2e448ba0f12c680ad0739281a1071363719c Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 3 Apr 2020 00:37:43 +0200 Subject: [PATCH] bkctld-stop: pkill outside of conditional it breaks the stop action --- lib/bkctld-stop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bkctld-stop b/lib/bkctld-stop index 9a9c2ce..5c247ca 100755 --- a/lib/bkctld-stop +++ b/lib/bkctld-stop @@ -19,7 +19,9 @@ test -d "${jail_path}" || error "${jail_name}: jail is missing." pid=$(cat "${jail_path}/${SSHD_PID}") -if pkill --parent "${pid}" && kill "${pid}"; then +pkill --parent "${pid}" + +if kill "${pid}"; then notice "${jail_name}: jail has been stopped [${pid}]" umount --lazy --recursive "${jail_path}/dev"