zed 442 B

1234567891011121314151617181920212223242526
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2015 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need zfs
  6. }
  7. start() {
  8. ebegin "Starting ZFS Event daemon"
  9. checkpath -q -d -m 0755 /var/run/zed
  10. start-stop-daemon --start -q \
  11. --exec /sbin/zed -- -M \
  12. -p /var/run/zed/pid
  13. eend $?
  14. }
  15. stop() {
  16. ebegin "Stopping ZFS Event daemon"
  17. start-stop-daemon --stop -q --pidfile /var/run/zed/pid
  18. eend $?
  19. }