1
0

dmeventd.initd-r3 595 B

123456789101112131415161718192021
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2019 Gentoo Authors
  3. # Distributed under the terms of the GNU General Public License v2
  4. command=/sbin/dmeventd
  5. command_args_foreground='-f'
  6. extra_started_commands=reload
  7. pidfile=/run/dmeventd.pid
  8. # Control idle exit behavior of daemon
  9. export DMEVENTD_IDLE_EXIT_TIMEOUT=${DMEVENTD_IDLE_EXIT_TIMEOUT:=-1}
  10. depend() {
  11. # As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
  12. # means dmeventd is NOT notified, as it cannot be safely running
  13. after lvm device-mapper
  14. }
  15. reload() {
  16. # TODO: this is not supported under supervisors
  17. ${command} -R
  18. }