]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virtlockd: improve initscripts
authorMichael Chapman <mike@very.puzzling.org>
Mon, 9 Dec 2013 06:23:26 +0000 (17:23 +1100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Dec 2013 11:02:37 +0000 (12:02 +0100)
commit59d6e65d6c3459f424cdfbb568153de4bebb639d
tree87ed206a0df396e62bb91c6f978432b696bfe3b6
parent1163fa36b72de14838816daf3c983a1931f1a8cb
virtlockd: improve initscripts

- Use SIGUSR1, not SIGHUP, on reload. At present, virtlockd only
  responds to the former.

- Fix PID file for virtlockd.

- Do not start virtlockd in any runlevels by default. It needs to be
  explicitly selected in libvirt's qemu.conf anyway, so there is no
  need to have it running on all systems regardless.

- Fix chkconfig priorities to ensure virtlockd is started before
  libvirtd is started, and stopped after libvirtd is stopped.

- Add "Should-Start: virtlockd" to the libvirtd initscript's LSB header,
  for the same reason.

- Add "Default-Stop" to both libvirtd and virtlockd initscripts. LSB
  does not guarantee that this defaults to the inverse of
  "Default-Start".

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
daemon/libvirtd.init.in
src/locking/virtlockd.init.in