Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 44963 Details for
Bug 70161
Ebuild to be used with the source and or binaries of Xen
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
xendomains
xendomains (text/plain), 1.73 KB, created by
Jerome Brown
on 2004-11-29 16:32:45 UTC
(
hide
)
Description:
xendomains
Filename:
MIME Type:
Creator:
Jerome Brown
Created:
2004-11-29 16:32:45 UTC
Size:
1.73 KB
patch
obsolete
>#!/sbin/runscripts ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 ># $Header: $ > ># Adopted from packaged init.d script for Gentoo > ># ># /etc/init.d/xendomains ># Start / stop domains automatically when domain 0 boots / shuts down. ># ># chkconfig: 345 99 00 ># description: Start / stop Xen domains. ># > >AUTODIR=/etc/xen/auto >LOCKFILE=/var/lock/subsys/xendomains > >depend() { > use xend >} > >start() { > if [ -f $LOCKFILE ]; then return; fi > > ebegin "Starting auto Xen domains" > > # We expect config scripts for auto starting domains to be in > # AUTODIR - they could just be symlinks to files elsewhere > if [ -d $AUTODIR ] && [ $(ls $AUTODIR | wc -l) -gt 0 ]; then > touch $LOCKFILE > > # Create all domains with config files in AUTODIR. > for dom in $AUTODIR/*; do > xm create --quiet --defconfig $dom > if [ $? -ne 0 ]; then > RETVAL=$? > fi > done > > fi > > eend $? >} > >stop() { > # NB. this shuts down ALL Xen domains (politely), not just the ones in > # AUTODIR/* > # This is because it's easier to do ;-) but arguably if this script is run > # on system shutdown then it's also the right thing to do. > > ebegin "Shutting down all Xen domains" > > xm shutdown --all --wait --halt > > RETVAL=$? > > [ $RETVAL -eq 0 ] && rm -f $LOCKFILE > > eend $? >} > ># This does NOT necessarily restart all running domains: instead it ># stops all running domains and then boots all the domains specified in ># AUTODIR. If other domains have been started manually then they will ># not get restarted. ># Commented out to avoid confusion! ># >#restart() >#{ ># stop ># start >#} > ># same as restart for now - commented out to avoid confusion >#reload() >#{ ># restart >#} > >status() { > xm list > ;; >}
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 70161
:
43893
|
43894
|
43934
|
44961
|
44962
| 44963 |
44965
|
50718
|
51453
|
52423
|
52424
|
53755
|
53756
|
53757
|
53758
|
53759
|
56536
|
57185
|
57186
|
57187
|
57188
|
57189
|
57231
|
57232
|
57233
|
57234
|
57444
|
59355
|
59688
|
59694
|
59695
|
59703
|
59710
|
59947
|
60478
|
60552
|
60561
|
60562
|
60746
|
61091
|
61951
|
62232
|
62233
|
66585