summaryrefslogtreecommitdiff
blob: f963d47070edec0a0b4dddb59c90c1ff4516b39b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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 $?
}