Added "mount /dev/pts" in upstart job.

This commit is contained in:
Benoit.S « Benpro » 2013-08-05 22:16:55 +02:00
parent 1bf1978d44
commit 60972403fe

View file

@ -10,8 +10,9 @@ env BACKUP_PATH=/backup
pre-start script
for jail in ${BACKUP_PATH}/jails/*; do
mount -t proc proc-chroot ${jail}/proc/
mount -t devtmpfs udev ${jail}/dev/
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
end script
@ -19,7 +20,8 @@ end script
post-stop script
for jail in ${BACKUP_PATH}/jails/*; do
kill $(chroot $jail cat /var/run/sshd.pid)
umount ${jail}/proc/
umount ${jail}/dev/pts/
umount ${jail}/proc
umount ${jail}/dev/pts
umount ${jail}/dev
done
end script