virtlogd.init-r1 569 B

123456789101112131415161718192021222324
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2015 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. description="libvirt virtual machine logging manager"
  5. command="/usr/sbin/virtlogd"
  6. command_args="-d"
  7. pidfile="/var/run/virtlogd.pid"
  8. extra_started_commands="reload"
  9. description_reload="re-exec the daemon, while maintaining open connections"
  10. depend() {
  11. after ntp-client ntpd nfs nfsmount corosync
  12. }
  13. reload() {
  14. ebegin "re-exec() virtlogd"
  15. start-stop-daemon --signal SIGUSR1 \
  16. --exec "${command}" --pidfile "${pidfile}"
  17. }