hi
I have try to convert the old skipt(guestname.sh/guestname.conf) to the new
style
/etc/vserver/guestname.sh:
#!/bin/sh
case $1 in
pre-start)
mkdir -p /vservers/file//data
mkdir -p /vservers/file//data/storage
mkdir -p /vservers/file//data/storage/160GB_1
mkdir -p /vservers/file//data/storage/60GB_1
mkdir -p /vservers/file//data/storage/60GB_2
mount --bind /data/storage/160GB_1
/vservers/file//data/storage/160GB_1
mount --bind /data/storage/60GB_1
/vservers/file//data/storage/60GB_1
mount --bind /data/storage/60GB_2
/vservers/file//data/storage/60GB_2
;;
post-start)
;;
pre-stop)
;;
post-stop)
umount /vservers/file//data/storage/160GB_1
umount /vservers/file//data/storage/60GB_1
umount /vservers/file//data/storage/60GB_2
;;
*)
echo $0 pre-start
echo $0 pre-stop
echo $0 post-start
echo $0 post-stop
;;
esac
to split for the util-vserver:
/etc/vserver/guestname/scripts/post-start
mkdir -p /vservers/file//data
mkdir -p /vservers/file//data/storage
mkdir -p /vservers/file//data/storage/160GB_1
mkdir -p /vservers/file//data/storage/60GB_1
mkdir -p /vservers/file//data/storage/60GB_2
mount --bind /data/storage/160GB_1
/vservers/file//data/storage/160GB_1
mount --bind /data/storage/60GB_1
/vservers/file//data/storage/60GB_1
mount --bind /data/storage/60GB_2
/vservers/file//data/storage/60GB_2
===
why dos it not work!!!
T&BW
Roman Pretory
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Aug 20 21:11:10 2006