Use lazy umount (wait for sshd stop)

This commit is contained in:
Victor LABORIE 2017-03-24 12:13:02 +01:00
parent 661e69ed4b
commit e815d61867
2 changed files with 4 additions and 9 deletions

8
bkctld
View file

@ -48,8 +48,8 @@ check_jail_on() {
exit 0
else
rm ${JAILDIR}/${jail}/${SSHD_PID}
umount -R ${JAILDIR}/${jail}/dev
umount ${JAILDIR}/${jail}/proc/
umount --lazy --recursive ${JAILDIR}/${jail}/dev
umount --lazy ${JAILDIR}/${jail}/proc/
exit 1
fi
else
@ -339,8 +339,8 @@ sub_stop() {
kill $conn
done
kill $pid
umount -R ${JAILDIR}/${jail}/dev
umount ${JAILDIR}/${jail}/proc/
umount --lazy --recursive ${JAILDIR}/${jail}/dev
umount --lazy ${JAILDIR}/${jail}/proc/
echo "...OK"
}

View file

@ -253,11 +253,6 @@ SSH_PORT
Port of corespondant evobackup jail.
.RE
.PP
SYSTEME
.RS 4
Linux or BSD.
.RE
.PP
MAIL
.RS 4
Email address for notification.