# cat startjail.sh
#!/bin/sh -xv
log1=/var/log/jail.log
jail1=/usr/local/jail

apachectl stop >> $log1
#inetd -wW -a 83.234.49.10 >> $log1

case "$1" in
start)
       mount_devfs devfs $jail1/dev >> $log1
       mount /dev/da1s1d $jail1/www >> $log1
       cd $jail1 >> $log1
       ln -sf dev/null kernel >> $log1
       echo -n '>>>jail starting...' >> $log1
       jail $jail1 jail 83.234.49.10 /bin/sh /etc/rc >> $log1
       ;;
stop)
       echo -n "jail shutdown..." >> $log1
       ;;
*)
echo "unknown options : $1 - only 'start' and 'stop'" >&2
;;

esac
exit 0

#cat /var/log/jail.log
Sun Oct 3 21:36:55 GMT 2004
/usr/local/sbin/apachectl stop: httpd (no pid file) not running
jail shutdown...>>>jail starting...Loading configuration files.
Entropy harvesting: interrupts ethernet point_to_point.
Fast boot: skipping disk checks.
em0: flags=8843 mtu 1500
       options=3
       inet 83.234.49.10 netmask 0xffffffff broadcast 83.234.49.10
       ether 00:30:48:42:2c:b2
       media: Ethernet autoselect (100baseTX )
       status: active
lo0: flags=8049 mtu 16384
add net default: gateway 83.234.49.14: Operation not permitted
Additional routing options:.
hw.bus.devctl_disable: 1 -> 1
Mounting NFS file systems:.
Starting syslogd.
ELF ldconfig path: /usr/lib /usr/lib/compat /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Starting local daemons:.
Updating motd.
Configuring syscons: keymap keyrate scrnmap font8x16 font8x14 font8x8 blanktime.
Starting sshd.
Initial i386 initialization:.
Additional ABI support:.
Starting cron.
Local package initialization: apache.
Additional TCP options:.
Starting inetd.
Starting background file system checks in 60 seconds.

Sun Oct 3 21:44:50 GMT 2004

<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>