diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2006-01-15 01:56:48 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2006-01-15 01:56:48 +0000 |
commit | 02816b640898a935e484a70137be99a09049aae0 (patch) | |
tree | 48a745dde03d8e89b7952c83ec598b360537c148 /sysutils/xentools20 | |
parent | 6a2a51f5b23ba41eb929b07810b9f8f22e410ab8 (diff) | |
download | pkgsrc-02816b640898a935e484a70137be99a09049aae0.tar.gz |
Do not try to start the domains unless @PROCPATH@/xen/privcmd is
present (consistency with the xend script).
Diffstat (limited to 'sysutils/xentools20')
-rw-r--r-- | sysutils/xentools20/files/xendomains.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/xentools20/files/xendomains.sh b/sysutils/xentools20/files/xendomains.sh index d395c4e841b..e9196eb46b2 100644 --- a/sysutils/xentools20/files/xendomains.sh +++ b/sysutils/xentools20/files/xendomains.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: xendomains.sh,v 1.1 2005/11/08 00:47:35 jlam Exp $ +# $NetBSD: xendomains.sh,v 1.2 2006/01/15 01:56:48 xtraeme Exp $ # # PROVIDE: xendomains # REQUIRE: xend @@ -35,11 +35,17 @@ start_cmd="xendomains_start" stop_cmd="xendomains_stop" list_cmd="xendomains_list" extra_commands="list" +privcmd_path="@PROCPATH@/xen/privcmd" xendomains_start() { [ -n "$xendomains" ] || return + if [ ! -f ${privcmd_path} ]; then + echo "${name}: Cannot find ${privcmd_path}!" + exit 1 + fi + echo "Starting xen domains." for domain in $xendomains; do case "$domain" in |