We have a system with some jails. First jail's home directory is /data/jails/ref. Then, we are running script "crash" under root:
 
-----------
 
#! /usr/local/bin/bash
 
SRC="/data/jails/refDEST=/data/jails/$1
mkdir $DEST
 
mkdir $DEST/usr
mount_union -b $SRC/usr $DEST/usr
 
mkdir $DEST/bin
mount_union -b $SRC/bin $DEST/bin
 
mkdir $DEST/root
mount_union -b $SRC/root $DEST/root
 
jail /data/jails/$1 jail$1 $2 /bin/csh /root/scripts/runjail
 
mount_union -b $SRC/usr $DEST/usr
 
mount_union -b $SRC/bin $DEST/bin
 
mount_union -b $SRC/root $DEST/root
--------------
 
Originally, this script was designed to make a clone of the first jail. Contents of /root/scripts/runjail:
 
-------------
 
sshd
/usr/local/apache/bin/apachectl start
cd /usr/local/mysql
bin/safe_mysqld --user=mysql &
cron
 
-------------
 
After this, system hangs up. When trying to reboot with "boot -sv" we see:
 
...
...
trying /sbin/init...
 
and freebsd halts again. There is no way to boot up. Of course, fsck reports "no problem" and checksum of /sbin/init is correct. The only way to continue working is to run "upgrade" from the instalation CD.
 
We are using freebsd 4.5.
 
May be anybody knows solution for this problem?
 
Victor Polyakov ([EMAIL PROTECTED])
 

Reply via email to