Debianize libvirt-guests

Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name Debianize-libvirt-guests.patch
This commit is contained in:
Laurent Léonard 2010-12-09 22:36:29 +01:00 committed by Cong Liu
parent 54c8afb277
commit 837167c4c5
2 changed files with 12 additions and 13 deletions

View File

@ -51,7 +51,7 @@ The following variables are supported:
URIs to check for running guests. Example: URIs to check for running guests. Example:
``URIS='default xen:///system xen+tcp://host/system lxc:///system'`` ``URIS='default xen:///system xen+tcp://host/system lxc:///system'``
- ON_BOOT=start - ON_BOOT=ignore
Action taken on host boot Action taken on host boot
@ -70,7 +70,7 @@ The following variables are supported:
Number of seconds to wait between each guest start. Set to 0 to allow parallel Number of seconds to wait between each guest start. Set to 0 to allow parallel
startup. startup.
- ON_SHUTDOWN=suspend - ON_SHUTDOWN=shutdown
Action taken on host shutdown Action taken on host shutdown

View File

@ -20,30 +20,30 @@ sysconfdir="@sysconfdir@"
localstatedir="@localstatedir@" localstatedir="@localstatedir@"
libvirtd="@sbindir@"/libvirtd libvirtd="@sbindir@"/libvirtd
# Source function library.
test ! -r "$sysconfdir"/rc.d/init.d/functions ||
. "$sysconfdir"/rc.d/init.d/functions
# Source gettext library. # Source gettext library.
# Make sure this file is recognized as having translations: _("dummy") # Make sure this file is recognized as having translations: _("dummy")
. "@bindir@"/gettext.sh . "@bindir@"/gettext.sh
# Make sure calls to this script get redirected to systemctl when
# using systemd
. /lib/lsb/init-functions
export TEXTDOMAIN="@PACKAGE@" TEXTDOMAINDIR="@localedir@" export TEXTDOMAIN="@PACKAGE@" TEXTDOMAINDIR="@localedir@"
URIS="default" URIS="default"
ON_BOOT="start" ON_BOOT="ignore"
ON_SHUTDOWN="suspend" ON_SHUTDOWN="shutdown"
SHUTDOWN_TIMEOUT=300 SHUTDOWN_TIMEOUT=300
PARALLEL_SHUTDOWN=0 PARALLEL_SHUTDOWN=0
START_DELAY=0 START_DELAY=0
BYPASS_CACHE=0 BYPASS_CACHE=0
SYNC_TIME=0 SYNC_TIME=0
test -f "$sysconfdir"/sysconfig/libvirt-guests && test -f "$sysconfdir"/default/libvirt-guests &&
. "$sysconfdir"/sysconfig/libvirt-guests . "$sysconfdir"/default/libvirt-guests
LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/libvirt-guests
RETVAL=0 RETVAL=0
@ -562,8 +562,7 @@ gueststatus() {
# rh_status # rh_status
# Display current status: whether saved state exists, and whether start # Display current status: whether saved state exists, and whether start
# has been executed. We cannot use status() from the functions library, # has been executed.
# since there is no external daemon process matching this init script.
rh_status() { rh_status() {
if [ -f "$LISTFILE" ]; then if [ -f "$LISTFILE" ]; then
gettext "stopped, with saved guests"; echo gettext "stopped, with saved guests"; echo