[Vserver] pre-start / pre-stop

From: Roman Pretory <roman.pretory_at_austrianonlines.com>
Date: Sun 20 Aug 2006 - 21:06:08 BST
Message-ID: <000001c6c494$13f8bc70$1402a8c0@LT01>

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

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 20 Aug 2006 - 21:11:14 BST by hypermail 2.1.8