dmeventd.initd 571 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. PIDFILE=/run/dmeventd.pid
  5. BIN=/usr/bin/dmeventd
  6. depend() {
  7. # As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
  8. # means dmeventd is NOT notified, as it cannot be safely running
  9. after lvm device-mapper
  10. }
  11. start() {
  12. ebegin "Starting dmeventd"
  13. start-stop-daemon --start --exec $BIN --pidfile $PIDFILE
  14. eend $?
  15. }
  16. stop() {
  17. ebegin "Stopping dmeventd"
  18. start-stop-daemon --stop --exec $BIN --pidfile $PIDFILE
  19. eend $?
  20. }