Skip to content

Commit

Permalink
Fix incorrect zpool_cache substitution
Browse files Browse the repository at this point in the history
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 <[email protected]>
Closes openzfs#370
  • Loading branch information
behlendorf committed Aug 22, 2011
1 parent fd1cd48 commit 1a2e6a6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion etc/init.d/zfs.arch.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion etc/init.d/zfs.fedora.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion etc/init.d/zfs.gentoo.in
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion etc/init.d/zfs.lsb.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion etc/init.d/zfs.lunar.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion etc/init.d/zfs.redhat.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1a2e6a6

Please sign in to comment.