« Proxmox et OpenVZ » : différence entre les versions

Aller à la navigation Aller à la recherche
Ligne 640 : Ligne 640 :
créez /etc/init/openvz.conf
créez /etc/init/openvz.conf
<pre>
<pre>
# OpenVZ init
# OpenVZ - Fix init sequence to have OpenVZ working with upstart


description "OpenVZ"
description "Fix OpenVZ"


start on startup
start on startup
Ligne 649 : Ligne 649 :
pre-start script
pre-start script
mount -t devpts devpts /dev/pts
mount -t devpts devpts /dev/pts
mount -t tmpfs varrun /var/run
mount -t tmpfs varlock /var/lock
mkdir -p /var/run/network
if [ ! -e /etc/mtab ]; then
cat /proc/mounts > /etc/mtab
fi
touch /var/run/utmp
chmod 664 /var/run/utmp
chown root.utmp /var/run/utmp
if [ "$(find /etc/network/ -name upstart -type f)" ]; then
chmod -x /etc/network/*/upstart || true
fi
end script
end script


4 231

modifications

Menu de navigation