1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

Fix LSB requirements in service script and sync them

Commit b22344f328 mistakenly reordered
Default-* lines.  Thanks to that I noticed that we are very inconsistent
with our init scripts, so I took the liberty of synchronizing them,
updating them and making them all look shiny and new.  So apart from
fixing the LSB requirements, I also fixed the ordering, specified
runlevels and fix the link to the reference specification.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2016-01-07 09:50:26 +01:00
parent 506e9d6c2d
commit 6dc0e4f171
4 changed files with 23 additions and 19 deletions

View File

@ -1,19 +1,16 @@
#!/bin/sh #!/bin/sh
# the following is the LSB init header see # the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV # http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
# #
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: libvirtd # Provides: libvirtd
# Required-Start: $network messagebus virtlogd
# Should-Start: $named
# Should-Start: xend
# Should-Start: avahi-daemon
# Should-Start: virtlockd
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5 # Default-Start: 3 4 5
# Default-Stop: 0 1 2 6 # Default-Stop: 0 1 2 6
# Required-Start: $network messagebus virtlogd
# Required-Stop: $network messagebus
# Should-Start: $named xend avahi-daemon virtlockd
# Should-Stop: $named
# Short-Description: daemon for libvirt virtualization API # Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances # Description: This is a daemon for managing guest instances
# and libvirt virtual networks # and libvirt virtual networks

View File

@ -1,12 +1,16 @@
#!/bin/sh #!/bin/sh
# the following is the LSB init header see # the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV # http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
# #
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: virtlockd # Provides: virtlockd
# Default-Start: # Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 5 6 # Default-Stop: 0 1 2 6
# Required-Start:
# Required-Stop:
# Should-Start: $network $remote_fs
# Should-Stop: $network $remote_fs
# Short-Description: virtual machine lock manager # Short-Description: virtual machine lock manager
# Description: This is a daemon for managing locks # Description: This is a daemon for managing locks
# on virtual machine disk images # on virtual machine disk images
@ -16,7 +20,7 @@
# #
# virtlockd: virtual machine lock manager # virtlockd: virtual machine lock manager
# #
# chkconfig: - 96 04 # chkconfig: 345 96 04
# description: This is a daemon for managing locks \ # description: This is a daemon for managing locks \
# on virtual machine disk images # on virtual machine disk images
# #

View File

@ -1,16 +1,16 @@
#!/bin/sh #!/bin/sh
# the following is the LSB init header see # the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV # http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
# #
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: virtlogd # Provides: virtlogd
# Default-Start: 3 5 # Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Required-Start: # Required-Start:
# Required-Stop: # Required-Stop:
# Should-Start: $network $remote_fs # Should-Start: $network $remote_fs
# Should-Stop: $network $remote_fs # Should-Stop: $network $remote_fs
# Default-Stop: 0 1 2 4 6
# Short-Description: virtual machine log manager # Short-Description: virtual machine log manager
# Description: This is a daemon for managing logs # Description: This is a daemon for managing logs
# of virtual machine consoles # of virtual machine consoles
@ -20,7 +20,7 @@
# #
# virtlogd: virtual machine log manager # virtlogd: virtual machine log manager
# #
# chkconfig: - 96 04 # chkconfig: 345 96 04
# description: This is a daemon for managing logs \ # description: This is a daemon for managing logs \
# of virtual machine consoles # of virtual machine consoles
# #

View File

@ -1,13 +1,16 @@
#!/bin/sh #!/bin/sh
# the following is the LSB init header # the following is the LSB init header see
# http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
# #
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: libvirt-guests # Provides: libvirt-guests
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Required-Start: libvirtd # Required-Start: libvirtd
# Required-Stop: libvirtd # Required-Stop: libvirtd
# Default-Start: 2 3 4 5 # Should-Start:
# Default-Stop: 0 1 6 # Should-Stop:
# Short-Description: suspend/resume libvirt guests on shutdown/boot # Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests # Description: This is a script for suspending active libvirt guests
# on shutdown and resuming them on next boot # on shutdown and resuming them on next boot