> > How can make it so that "vserver <vsname> start" checks that some condition
> > is fulfilled before actually starting the vserver?
>
> Put a script in /etc/vservers/<guest>/scripts/initialize.d/<whatever>, make sure it's
> not executable, and exit 1 if your conditions are not met.
>
It seems that "script" here means "bash" only (?).
At least, I tried with a Perl script, and got this message:
# vserver i386 start
/etc/vservers/i386/scripts/initialize.d/isLvmDeviceAvailable.pl: line 3: use: command
not found
Failed to start vserver 'i386'
So the program that starts those scripts seems to ignore the
#!/usr/bin/perl -w
line at the top of the file.
Is there a possibility to run a Perl script? If so, how?
Thanks,
Gilles