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
6408c577
Commit
6408c577
authored
14 years ago
by
Laurent Léonard
Browse files
Options
Downloads
Patches
Plain Diff
Remove libvirt-suspendonreboot
parent
a7f4bedf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/libvirt-bin.examples
+0
-1
0 additions, 1 deletion
debian/libvirt-bin.examples
debian/libvirt-suspendonreboot
+0
-48
0 additions, 48 deletions
debian/libvirt-suspendonreboot
with
0 additions
and
49 deletions
debian/libvirt-bin.examples
+
0
−
1
View file @
6408c577
...
...
@@ -2,4 +2,3 @@ daemon/libvirtd.conf
daemon/libvirtd.policy-0
daemon/libvirtd.policy-1
daemon/libvirtd.sasl
debian/libvirt-suspendonreboot
This diff is collapsed.
Click to expand it.
debian/libvirt-suspendonreboot
deleted
100644 → 0
+
0
−
48
View file @
a7f4bedf
#! /bin/sh
### BEGIN INIT INFO
# Provides: libvirt-suspendonreboot
# Required-Start: libvirt-bin
# Required-Stop: libvirt-bin $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: suspend/resmum vms on reboot
### END INIT INFO
# (c) Andi Barth <aba@not.so.argh.org> 2008
# Distributable under the terms of the GNU GPL version 2.
#
# copy to /etc/init.d/libvirt-suspendonreboot and use
# update-rc.d libvirt-suspendonreboot defaults 29 71
# to enable
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
suspenddir
=
/var/lib/libvirt/autosuspend
case
"
$1
"
in
start
)
for
domain
in
${
suspenddir
}
/
*
dump
;
do
if
[
-f
$domain
]
;
then
domain
=
$(
basename
$domain
.dump
)
echo
"resuming
$domain
..."
virsh restore
${
suspenddir
}
/
${
domain
}
.dump
&&
rm
${
suspenddir
}
/
${
domain
}
.dump
fi
done
;;
stop
)
for
domain
in
/etc/libvirt/qemu/
*
xml
;
do
domain
=
$(
basename
$domain
.xml
)
state
=
$(
virsh domstate
$domain
)
if
[
"
$state
"
=
"running"
]
;
then
echo
"suspending
$domain
..."
virsh save
${
domain
}
${
suspenddir
}
/
${
domain
}
.dump
fi
done
;;
reload|force-reload|restart
)
# No action, nothing to reload
;;
*
)
echo
"Usage:
$0
{start|stop|restart|reload|force-reload}"
>
&2
exit
1
esac
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