2012-10-21 10:29:51 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-01-07 16:50:26 +08:00
|
|
|
# the following is the LSB init header see
|
|
|
|
# http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
|
2012-10-21 10:29:51 +08:00
|
|
|
#
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: libvirt-guests
|
2016-01-07 16:50:26 +08:00
|
|
|
# Default-Start: 3 4 5
|
|
|
|
# Default-Stop: 0 1 2 6
|
2012-10-21 10:29:51 +08:00
|
|
|
# Required-Start: libvirtd
|
|
|
|
# Required-Stop: libvirtd
|
2016-01-07 16:50:26 +08:00
|
|
|
# Should-Start:
|
|
|
|
# Should-Stop:
|
2012-10-21 10:29:51 +08:00
|
|
|
# Short-Description: suspend/resume libvirt guests on shutdown/boot
|
|
|
|
# Description: This is a script for suspending active libvirt guests
|
|
|
|
# on shutdown and resuming them on next boot
|
|
|
|
# See http://libvirt.org
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
# the following is chkconfig init header
|
|
|
|
#
|
|
|
|
# libvirt-guests: suspend/resume libvirt guests on shutdown/boot
|
|
|
|
#
|
|
|
|
# chkconfig: 345 99 01
|
|
|
|
# description: This is a script for suspending active libvirt guests \
|
|
|
|
# on shutdown and resuming them on next boot \
|
|
|
|
# See http://libvirt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
exec @libexecdir@/libvirt-guests.sh "$@"
|