Use lazy umount (wait for sshd stop)
This commit is contained in:
parent
e2c73395f9
commit
dabb5de436
8
bkctld
8
bkctld
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue