180 |
start) |
start) |
181 |
lxc_exists $1 |
lxc_exists $1 |
182 |
cleanup_init_scripts $1 |
cleanup_init_scripts $1 |
183 |
setup_inittab $1 ::power "p0::powerfail:/sbin/init 0" |
setup_inittab $1 ":respawn:/sbin/getty.*tty1" "c1:12345:respawn:/sbin/getty 38400 tty1 linux" |
184 |
setup_inittab $1 ::ctrlaltdel "p6::ctrlaltdel:/sbin/init 6" |
setup_inittab $1 "::power" "p0::powerfail:/sbin/init 0" |
185 |
|
setup_inittab $1 "::ctrlaltdel" "p6::ctrlaltdel:/sbin/init 6" |
186 |
lxc_start $1 |
lxc_start $1 |
187 |
# give container 5 seconds to start more than one process |
# give container 5 seconds to start more than one process |
188 |
( sleep 5 ; nohup $0 watchdog $1 >> /tmp/$1.log 2>/dev/null ) & |
( sleep 5 ; nohup $0 watchdog $1 >> /tmp/$1.log 2>/dev/null ) & |