Subject: Problems with scripts
From: Gustavo <lungpu+virtual@gmail.com>
Date: Wed, 15 Aug 2007 17:39:36 -0300
Wed, 15 Aug 2007 17:39:36 -0300
Hi, I'm new in list, my name is Gustavo and I've been testing vservers for
some weeks in my work for development and testing, and made some "helpers"
too. My problem now is with scripts to be located at /etc/vservers/scripts.
As I've seen in the "flower page", they are initialize, prepre-start,
pre-start, post-stop, postpost-stop, and so on. Happens that I'm trying to
mount a file as a loop device to be like de block device representing the
disk of the vps. Since initialize runs _before_ the fs is mounted, it works
fine but unmounting and freeing the loop dev appears to be not so easy
because maybe there is a chroot to the vps root dir before running the
postpost-stop script. Do you know any alternative for doing this?

(in some days when this finish taking shape, I'll put public the scripts I
made to enhance functionality and make easy common creation/modification
tasks with vservers)

Thanks,
Gustavo


Hi, I'm new in list, my name is Gustavo and I've been testing vservers for some weeks in my work for development and testing, and made some "helpers" too. My problem now is with scripts to be located at /etc/vservers/scripts. As I've seen in the "flower page", they are initialize, prepre-start, pre-start, post-stop, postpost-stop, and so on. Happens that I'm trying to mount a file as a loop device to be like de block device representing the disk of the vps. Since initialize runs _before_ the fs is mounted, it works fine but unmounting and freeing the loop dev appears to be not so easy because maybe there is a chroot to the vps root dir before running the postpost-stop script. Do you know any alternative for doing this?

(in some days when this finish taking shape, I'll put public the scripts I made to enhance functionality and make easy common creation/modification tasks with vservers)

Thanks,
Gustavo