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 | f5750a99ecee91757168329e90a07c9058e81fe4 (patch) | |
tree | 48a745dde03d8e89b7952c83ec598b360537c148 /sysutils | |
parent | d01b64c2503c6e61e0fa4fb1ad6d85d8c6eab4d3 (diff) | |
download | pkgsrc-f5750a99ecee91757168329e90a07c9058e81fe4.tar.gz |
Do not try to start the domains unless @PROCPATH@/xen/privcmd is
present (consistency with the xend script).
Diffstat (limited to 'sysutils')
-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 |