diff options
author | Chris Bainbridge <chrb@gentoo.org> | 2005-09-20 08:57:06 +0000 |
---|---|---|
committer | Chris Bainbridge <chrb@gentoo.org> | 2005-09-20 08:57:06 +0000 |
commit | 142222aafa9bc031af630f0e718e7d9e59a5370c (patch) | |
tree | 855f78e478e9be33b677c47952a828efea01ca26 /app-emulation/xen/files | |
parent | Remove kadmos flag for kooka. (diff) | |
download | historical-142222aafa9bc031af630f0e718e7d9e59a5370c.tar.gz historical-142222aafa9bc031af630f0e718e7d9e59a5370c.tar.bz2 historical-142222aafa9bc031af630f0e718e7d9e59a5370c.zip |
Change init scripts to absolute paths.
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'app-emulation/xen/files')
-rw-r--r-- | app-emulation/xen/files/xend-init | 14 | ||||
-rw-r--r-- | app-emulation/xen/files/xendomains-init | 10 |
2 files changed, 12 insertions, 12 deletions
diff --git a/app-emulation/xen/files/xend-init b/app-emulation/xen/files/xend-init index 350672ba9021..118df2d0ab9b 100644 --- a/app-emulation/xen/files/xend-init +++ b/app-emulation/xen/files/xend-init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/files/xend-init,v 1.1 2005/09/07 18:18:59 chrb Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/files/xend-init,v 1.2 2005/09/20 08:57:06 chrb Exp $ opts="start stop status restart" @@ -13,30 +13,30 @@ depend() { await_daemons_up() { for ((i=0; i<5; i++)); do sleep 1 - xend status && return 0 + /usr/sbin/xend status && return 0 done return 1 } start() { ebegin "Starting Xen control daemon" - xend start - xend status || await_daemons_up + /usr/sbin/xend start + /usr/sbin/xend status || await_daemons_up eend $? } stop() { if [ "$(xm list | wc -l)" -gt 2 ]; then ebegin " Stopping all domain" - xm shutdown --all --halt --wait >/dev/null + /usr/sbin/xm shutdown --all --halt --wait >/dev/null eend $? fi ebegin "Stopping Xen control daemon" - xend stop + /usr/sbin/xend stop eend $? } status() { - xend status + /usr/sbin/xend status } diff --git a/app-emulation/xen/files/xendomains-init b/app-emulation/xen/files/xendomains-init index b525884e1562..f9bdeb3474ad 100644 --- a/app-emulation/xen/files/xendomains-init +++ b/app-emulation/xen/files/xendomains-init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/files/xendomains-init,v 1.1 2005/09/07 18:18:59 chrb Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/files/xendomains-init,v 1.2 2005/09/20 08:57:06 chrb Exp $ opts="start stop status restart" @@ -14,7 +14,7 @@ get_domname() { } is_running() { - [ -n "`xm list | grep "^${1} "`" ] + [ -n "`/usr/sbin/xm list | grep "^${1} "`" ] } start() { @@ -24,7 +24,7 @@ start() { name=$(get_domname ${dom}) if ! is_running ${name} ; then ebegin " Starting domain ${name}" - xm create --quiet --defconfig ${dom} + /usr/sbin/xm create --quiet --defconfig ${dom} eend $? else einfo " Not Starting domain ${name} - allready running" @@ -39,7 +39,7 @@ stop() { name=$(get_domname ${dom}) if is_running ${name} ; then ebegin " Stopping domain ${name}" - xm shutdown --halt --wait ${name} >/dev/null + /usr/sbin/xm shutdown --halt --wait ${name} >/dev/null eend $? else einfo " Not Stopping domain ${name} - not running" @@ -48,5 +48,5 @@ stop() { } status() { - xm list + /usr/sbin/xm list } |