virtlockd.initd 575 B

123456789101112131415161718192021222324
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2020 Gentoo Authors
  3. # Distributed under the terms of the GNU General Public License v2
  4. description="libvirt virtual machine lock manager"
  5. command="/usr/bin/virtlockd"
  6. start_stop_daemon_args="-b"
  7. pidfile="/run/virtlockd.pid"
  8. extra_started_commands="reload"
  9. description_reload="re-exec the daemon, while maintaining locks and clients"
  10. depend() {
  11. after ntp-client ntpd nfs nfsmount corosync
  12. }
  13. reload() {
  14. ebegin "re-exec() virtlockd"
  15. start-stop-daemon --signal SIGUSR1 \
  16. --exec "${command}" --pidfile "${pidfile}"
  17. }