]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix LSB requirements in service script and sync them
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 7 Jan 2016 08:50:26 +0000 (09:50 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 11 Jan 2016 14:49:13 +0000 (15:49 +0100)
Commit b22344f3285187ee1768d6e031bc0ff20e32552d 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>
daemon/libvirtd.init.in
src/locking/virtlockd.init.in
src/logging/virtlogd.init.in
tools/libvirt-guests.init.in

index 22006c448cdff1f1e41af4d9b74b46b5b3600d90..164732905d4baf234c82dbb1dad4acc49667c7e5 100644 (file)
@@ -1,19 +1,16 @@
 #!/bin/sh
 
 # 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
 # Provides: libvirtd
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
 # Required-Start: $network messagebus virtlogd
-# Should-Start: $named
-# Should-Start: xend
-# Should-Start: avahi-daemon
-# Should-Start: virtlockd
 # Required-Stop: $network messagebus
+# Should-Start: $named xend avahi-daemon virtlockd
 # Should-Stop: $named
-# Default-Start: 3 4 5
-# Default-Stop: 0 1 2 6
 # Short-Description: daemon for libvirt virtualization API
 # Description: This is a daemon for managing guest instances
 #              and libvirt virtual networks
index 596bb624148540b6cb507e281340a3b00e72b3c1..0bf868ca7ff1f3df1964246169856eec9801716f 100644 (file)
@@ -1,12 +1,16 @@
 #!/bin/sh
 
 # 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
 # Provides: virtlockd
-# Default-Start:
-# Default-Stop: 0 1 2 3 4 5 6
+# Default-Start: 3 4 5
+# 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
 # Description: This is a daemon for managing locks
 #              on virtual machine disk images
@@ -16,7 +20,7 @@
 #
 # virtlockd:   virtual machine lock manager
 #
-# chkconfig: - 96 04
+# chkconfig: 345 96 04
 # description:  This is a daemon for managing locks \
 #               on virtual machine disk images
 #
index 89b243dc0522d33dd16b1dff853f894e7bfe9b01..6aa88150469f6718581ca661e4bd618fd0564973 100644 (file)
@@ -1,16 +1,16 @@
 #!/bin/sh
 
 # 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
 # Provides: virtlogd
-# Default-Start: 3 5
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
 # Required-Start:
 # Required-Stop:
 # Should-Start: $network $remote_fs
 # Should-Stop: $network $remote_fs
-# Default-Stop: 0 1 2 4 6
 # Short-Description: virtual machine log manager
 # Description: This is a daemon for managing logs
 #              of virtual machine consoles
@@ -20,7 +20,7 @@
 #
 # virtlogd:   virtual machine log manager
 #
-# chkconfig: - 96 04
+# chkconfig: 345 96 04
 # description:  This is a daemon for managing logs \
 #               of virtual machine consoles
 #
index 5f9a60e81f053149a7e3a7d0534d0d97e2b25524..7709df3b96a305090633ac6548e4a702f30d235b 100644 (file)
@@ -1,13 +1,16 @@
 #!/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
 # Provides: libvirt-guests
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
 # Required-Start: libvirtd
 # Required-Stop: libvirtd
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
+# Should-Start:
+# Should-Stop:
 # 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