mirror_zfs-debian/debian/patches/1004-zed-service-bindir.patch
Mo Zhou 2ad6c7f9e1 Install init scripts to support non-systemd setups. (Closes: #826994)
Thanks to Chris Dos <chris@chrisdos.com>
Gbp-Dch: Full
2018-10-26 07:53:21 +00:00

33 lines
1007 B
Diff

Description: Fix the path to the zed binary on the systemd unit.
We install zed into /usr/sbin manually meanwhile the upstream default
is installing it into /sbin.
Ubuntu packages also install zed to /usr/sbin, but they ship their own
zfs-zed unit.
Author: Carlos Alberto Lopez <clopez@igalia.com>
Author: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Author: Chris Dos <chris@chrisdos.com>
Bug-Debian: https://bugs.debian.org/849813
Bug-Debian: https://bugs.debian.org/826994
Forwarded: no
--- a/etc/systemd/system/zfs-zed.service.in
+++ b/etc/systemd/system/zfs-zed.service.in
@@ -5,7 +5,7 @@ After=zfs-import-cache.service
After=zfs-import-scan.service
[Service]
-ExecStart=@sbindir@/zed -F
+ExecStart=/usr/sbin/zed -F
Restart=on-abort
[Install]
--- a/etc/init.d/zfs-functions.in
+++ b/etc/init.d/zfs-functions.in
@@ -89,7 +89,7 @@
# Paths to what we need
ZFS="@sbindir@/zfs"
-ZED="@sbindir@/zed"
+ZED="/usr/sbin/zed"
ZPOOL="@sbindir@/zpool"
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"