diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-06-05 02:56:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-06-05 02:56:15 +0100 |
commit | 4594caec9341d17a10db3f9a8c96ec2a9b2c87a6 (patch) | |
tree | c62d3d186ef42bbe303a85bef39d8f0983e3fa8a /sys-fs/zfs-utils/files/zed | |
parent | b96f6791ecfaf22e1a39f3ccf49479345c353b32 (diff) |
give userspace packages a more, userspace name
Diffstat (limited to 'sys-fs/zfs-utils/files/zed')
-rw-r--r-- | sys-fs/zfs-utils/files/zed | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-fs/zfs-utils/files/zed b/sys-fs/zfs-utils/files/zed new file mode 100644 index 00000000..d46acfac --- /dev/null +++ b/sys-fs/zfs-utils/files/zed @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need zfs +} + +start() { + ebegin "Starting ZFS Event daemon" + + checkpath -q -d -m 0755 /var/run/zed + + start-stop-daemon --start -q \ + --exec /sbin/zed -- -M \ + -p /var/run/zed/pid + eend $? + +} + +stop() { +ebegin "Stopping ZFS Event daemon" + start-stop-daemon --stop -q --pidfile /var/run/zed/pid +eend $? +} |