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

View file

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