summaryrefslogtreecommitdiffstats
path: root/etc/systemd/system/zed.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'etc/systemd/system/zed.service.in')
-rw-r--r--etc/systemd/system/zed.service.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/systemd/system/zed.service.in b/etc/systemd/system/zed.service.in
new file mode 100644
index 000000000..78988abb9
--- /dev/null
+++ b/etc/systemd/system/zed.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=ZFS Event Daemon (zed)
+Documentation=man:zed(8)
+After=zfs-import-cache.service
+After=zfs-import-scan.service
+
+[Service]
+Type=forking
+ExecStart=@sbindir@/zed
+PIDFile=@runstatedir@/zed.pid
+User=root
+Group=root
+Restart=on-abort