Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvirt
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libvirt Packaging Team
libvirt
Commits
697838ff
Commit
697838ff
authored
13 years ago
by
Guido Günther
Browse files
Options
Downloads
Patches
Plain Diff
Update Debianize-libvirt-guests.patch
with new config option PARALLEL_SHUTDOWN
parent
deacbc5b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/patches/debian/Debianize-libvirt-guests.patch
+15
-18
15 additions, 18 deletions
debian/patches/debian/Debianize-libvirt-guests.patch
with
15 additions
and
18 deletions
debian/patches/debian/Debianize-libvirt-guests.patch
+
15
−
18
View file @
697838ff
...
...
@@ -4,13 +4,14 @@ Subject: Debianize libvirt-guests
Origin: vendor
---
tools/libvirt-guests.init.sh | 4
3
+++++++++++++----------------------------
tools/libvirt-guests.sysconf |
6
++--
2 files changed, 1
7
insertions(+), 3
2
deletions(-)
tools/libvirt-guests.init.sh | 4
1
+++++++++++++----------------------------
tools/libvirt-guests.sysconf |
4
++--
2 files changed, 1
5
insertions(+), 3
0
deletions(-)
diff --git a/tools/libvirt-guests.init.sh b/tools/libvirt-guests.init.sh
index
367177e..43f35c9
100644
index
aafb4d4..386ee91
100644
--- a/tools/libvirt-guests.init.sh
+++ b/tools/libvirt-guests.init.sh
@@ -4,8 +4,8 @@
...
...
@@ -24,7 +25,7 @@ index 367177e..43f35c9 100644
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: suspend/resume libvirt guests on shutdown/boot
@@ -14,4
2
+14,2
8
@@
@@ -14,4
3
+14,2
9
@@
# See http://libvirt.org
### END INIT INFO
...
...
@@ -60,10 +61,10 @@ index 367177e..43f35c9 100644
URIS=default
-ON_BOOT=start
-ON_SHUTDOWN=suspend
-SHUTDOWN_TIMEOUT=0
+ON_BOOT=ignore
+ON_SHUTDOWN=shutdown
+SHUTDOWN_TIMEOUT=30
SHUTDOWN_TIMEOUT=300
PARALLEL_SHUTDOWN=0
START_DELAY=0
BYPASS_CACHE=0
...
...
@@ -78,7 +79,7 @@ index 367177e..43f35c9 100644
RETVAL=0
@@ -
316
,8 +
302
,7 @@
gueststatus() {
@@ -
499
,8 +
485
,7 @@
gueststatus() {
# rh_status
# Display current status: whether saved state exists, and whether start
...
...
@@ -89,7 +90,7 @@ index 367177e..43f35c9 100644
if [ -f "$LISTFILE" ]; then
gettext "stopped, with saved guests"; echo
diff --git a/tools/libvirt-guests.sysconf b/tools/libvirt-guests.sysconf
index
9b8b64f..e0644db
100644
index
d1f2051..1173760
100644
--- a/tools/libvirt-guests.sysconf
+++ b/tools/libvirt-guests.sysconf
@@ -8,7 +8,7 @@
...
...
@@ -99,18 +100,14 @@ index 9b8b64f..e0644db 100644
-#ON_BOOT=start
+#ON_BOOT=ignore
#
n
umber of seconds to wait between each guest start
#
START_DELAY=0
@@ -2
1,10 +21,10
@@
#
N
umber of seconds to wait between each guest start
. Set to 0 to allow
#
parallel startup.
@@ -2
2,7 +22,7
@@
# which just needs a long time to shutdown. When setting
# ON_SHUTDOWN=shutdown, you must also set SHUTDOWN_TIMEOUT to a
# value suitable for your guests.
-#ON_SHUTDOWN=suspend
+#ON_SHUTDOWN=shutdown
# number of seconds we're willing to wait for a guest to shut down
-#SHUTDOWN_TIMEOUT=0
+#SHUTDOWN_TIMEOUT=30
# If non-zero, try to bypass the file system cache when saving and
# restoring guests, even though this may give slower operation for
# If set to non-zero, shutdown will suspend guests concurrently. Number of
# guests on shutdown at any time will not exceed number set in this variable.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment