Fix incorrect zpool_cache substitution
This regression was accidentally introduced by commit aa2b489
.
I was attempting to simplify the init scripts and accidentally
confused the /etc/init.d and /etc/zfs paths. This change reverts
the init script modifications.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #370
This commit is contained in:
parent
fd1cd4888a
commit
1a2e6a635f
|
@ -5,7 +5,7 @@
|
|||
|
||||
ZFS="@sbindir@/zfs"
|
||||
ZPOOL="@sbindir@/zpool"
|
||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
|
|
@ -32,7 +32,7 @@ export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
|||
RETVAL=0
|
||||
ZFS="@sbindir@/zfs"
|
||||
ZPOOL="@sbindir@/zpool"
|
||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||
servicename=zfs
|
||||
LOCKFILE=/var/lock/subsys/$servicename
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ depend()
|
|||
|
||||
ZFS="@sbindir@/zfs"
|
||||
ZPOOL="@sbindir@/zpool"
|
||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||
ZFS_MODULE=zfs
|
||||
|
||||
checksystem() {
|
||||
|
|
|
@ -33,7 +33,7 @@ RETVAL=0
|
|||
LOCKFILE=/var/lock/zfs
|
||||
ZFS="@sbindir@/zfs"
|
||||
ZPOOL="@sbindir@/zpool"
|
||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||
|
||||
[ -x $ZPOOL ] || exit 1
|
||||
[ -x $ZFS ] || exit 2
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
ZFS="@sbindir@/zfs"
|
||||
ZPOOL="@sbindir@/zpool"
|
||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||
|
||||
case $1 in
|
||||
start) echo "$1ing ZFS filesystems"
|
||||
|
|
|
@ -32,7 +32,7 @@ export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
|||
RETVAL=0
|
||||
ZFS="@sbindir@/zfs"
|
||||
ZPOOL="@sbindir@/zpool"
|
||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
||||
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||
servicename=zfs
|
||||
LOCKFILE=/var/lock/subsys/$servicename
|
||||
|
||||
|
|
Loading…
Reference in New Issue