Code cleanup #33

Manually merged
jlecour merged 71 commits from jlecour-refactoring into master 2020-04-17 15:32:41 +02:00
Showing only changes of commit 88dd2e448b - Show all commits

View file

@ -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"