Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 268615 Details for
Bug 144994
stabilise xen-4.1.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Replacement init.d for xencommons
xencommons (text/plain), 2.06 KB, created by
Nathan March
on 2011-04-05 17:26:46 UTC
(
hide
)
Description:
Replacement init.d for xencommons
Filename:
MIME Type:
Creator:
Nathan March
Created:
2011-04-05 17:26:46 UTC
Size:
2.06 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >opts="start stop" > >depend() { > need net > before xend >} > > >start () { > if [ -d /etc/sysconfig ]; then > xencommons_config=/etc/sysconfig > else > xencommons_config=/etc/default > fi > > if ! grep -q "control_d" /proc/xen/capabilities ; then > exit 0 > fi > > test -f $xencommons_config/xencommons && . $xencommons_config/xencommons > > XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid > shopt -s extglob > > if test "x$1" = xstart && test -d /proc/xen && ! test -f /proc/xen/capabilities && ! grep '^xenfs ' /proc/mounts >/dev/null; then > mount -t xenfs xenfs /proc/xen > fi > > local time=0 > local timeout=30 > > if ! `xenstore-read -s / >/dev/null 2>&1` > then > test -z "$XENSTORED_ROOTDIR" || XENSTORED_ROOTDIR="/var/lib/xenstored" > rm -f "$XENSTORED_ROOTDIR"/tdb* &>/dev/null > test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T /var/log/xen/xenstored-trace.log" > > ebegin "Starting xenstored" > xenstored --pid-file=/var/run/xenstored.pid $XENSTORED_ARGS > > # Wait for xenstored to actually come up, timing out after 30 seconds > while [ $time -lt $timeout ] && ! `xenstore-read -s / >/dev/null 2>&1` ; do > time=$(($time+1)) > sleep 1 > done > > # Exit if we timed out > if ! [ $time -lt $timeout ] ; then > eend 1 > fi > eend 0 > > ebegin "Setting domain 0 name" > xenstore-write "/local/domain/0/name" "Domain-0" > eend $? > fi > > ebegin "Starting xenconsoled..." > test -z "$XENCONSOLED_TRACE" || XENCONSOLED_ARGS=" --log=$XENCONSOLED_TRACE" > xenconsoled --pid-file=$XENCONSOLED_PIDFILE $XENCONSOLED_ARGS > test -z "$XENBACKENDD_DEBUG" || XENBACKENDD_ARGS="-d" > test "`uname`" != "NetBSD" || xenbackendd $XENBACKENDD_ARGS > eend $? >} > >stop () { > ebegin Stopping xenconsoled > if read 2>/dev/null <$XENCONSOLED_PIDFILE pid; then > kill $pid > while kill -9 $pid >/dev/null 2>&1; do sleep 0.1; done > rm -f $XENCONSOLED_PIDFILE > fi > eend 0 > > echo WARNING: Not stopping xenstored, as it cannot be restarted. >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 144994
: 268615 |
270595