Subject: Conditional start
From: Gilles Sadowski <gilles@harfang.homelinux.org>
Date: Sat, 16 Aug 2008 19:00:56 +0200

Hello.

How can make it so that "vserver <vsname> start" checks that some condition
is fulfilled before actually starting the vserver?

[I'm considering the following: a program inside the vserver needs to access
data located on an external disk that might not be plugged in, so there
should be a test that checks for the existence of the device and, if not
present, reports it somehow, and does not start the vserver.]

Any suggestions (or pointer to the documentation where a similar situation
might be explained)?


Thanks and best regards,
Gilles