1 Description: Make these scripts work for Debian+OpenRC setup.
2 Author: Mo Zhou <lumin@debian.org>
4 Forward: https://github.com/zfsonlinux/zfs/issues/8063
6 diff --git a/etc/init.d/zfs-import.in b/etc/init.d/zfs-import.in
7 index fea661bb..404af82d 100644
8 --- a/etc/init.d/zfs-import.in
9 +++ b/etc/init.d/zfs-import.in
14 # zfs-import This script will import ZFS pools
16 @@ -308,8 +308,6 @@ do_start()
18 # ----------------------------------------------------
20 -if [ ! -e /sbin/openrc-run ]
25 @@ -331,9 +329,3 @@ then
30 - # Create wrapper functions since Gentoo don't use the case part.
31 - depend() { do_depend; }
32 - start() { do_start; }
33 - status() { do_status; }
35 diff --git a/etc/init.d/zfs-mount.in b/etc/init.d/zfs-mount.in
36 index fa954e09..b6a3de9b 100644
37 --- a/etc/init.d/zfs-mount.in
38 +++ b/etc/init.d/zfs-mount.in
43 # zfs-mount This script will mount/umount the zfs filesystems.
45 @@ -199,8 +199,6 @@ do_stop()
47 # ----------------------------------------------------
49 -if [ ! -e /sbin/openrc-run ]
54 @@ -219,9 +217,3 @@ then
59 - # Create wrapper functions since Gentoo don't use the case part.
60 - depend() { do_depend; }
61 - start() { do_start; }
64 diff --git a/etc/init.d/zfs-share.in b/etc/init.d/zfs-share.in
65 index ce3cc1cc..0b14f481 100644
66 --- a/etc/init.d/zfs-share.in
67 +++ b/etc/init.d/zfs-share.in
72 # zfs-share This script will network share zfs filesystems and volumes.
74 @@ -58,7 +58,6 @@ do_stop()
76 # ----------------------------------------------------
78 -if [ ! -e /sbin/openrc-run ]; then
82 @@ -77,9 +76,3 @@ if [ ! -e /sbin/openrc-run ]; then
87 - # Create wrapper functions since Gentoo don't use the case part.
88 - depend() { do_depend; }
89 - start() { do_start; }
92 diff --git a/etc/init.d/zfs-zed.in b/etc/init.d/zfs-zed.in
93 index d0086eef..4798105d 100644
94 --- a/etc/init.d/zfs-zed.in
95 +++ b/etc/init.d/zfs-zed.in
102 @@ -98,7 +98,6 @@ do_reload()
104 # ----------------------------------------------------
106 -if [ ! -e /sbin/openrc-run ]; then
110 @@ -124,11 +123,3 @@ if [ ! -e /sbin/openrc-run ]; then
115 - # Create wrapper functions since Gentoo don't use the case part.
116 - depend() { do_depend; }
117 - start() { do_start; }
118 - stop() { do_stop; }
119 - status() { do_status; }
120 - reload() { do_reload; }