Added /dev/pts for jails in Debian init script.

This commit is contained in:
Benoît S. 2014-01-30 14:59:49 +01:00
parent 4bf30aac4a
commit 0c2763b16a

View file

@ -17,6 +17,7 @@ case "$1" in
for jail in ${BACKUP_PATH}/jails/*; do
mount -t proc proc-chroot ${jail}/proc/
mount -t devtmpfs udev ${jail}/dev/
mount -t devpts devpts ${jail}/dev/pts
chroot ${jail} /usr/sbin/sshd > /dev/null
done
;;
@ -25,6 +26,7 @@ case "$1" in
for jail in ${BACKUP_PATH}/jails/*; do
umount ${jail}/proc/
umount ${jail}/dev/pts/
umount ${jail}/dev
kill $(chroot $jail cat /var/run/sshd.pid)
done
;;