2012-10-21 02:29:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-01-07 08:50:26 +00: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 02:29:51 +00:00
|
|
|
#
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: libvirt-guests
|
2016-01-07 08:50:26 +00:00
|
|
|
# Default-Start: 3 4 5
|
|
|
|
# Default-Stop: 0 1 2 6
|
2012-10-21 02:29:51 +00:00
|
|
|
# Required-Start: libvirtd
|
|
|
|
# Required-Stop: libvirtd
|
2016-01-07 08:50:26 +00:00
|
|
|
# Should-Start:
|
|
|
|
# Should-Stop:
|
2012-10-21 02:29:51 +00: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
|
2017-10-13 15:30:41 +00:00
|
|
|
# See https://libvirt.org
|
2012-10-21 02:29:51 +00:00
|
|
|
### 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 \
|
2017-10-13 15:30:41 +00:00
|
|
|
# See https://libvirt.org
|
2012-10-21 02:29:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
exec @libexecdir@/libvirt-guests.sh "$@"
|