Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 919696
Collapse All | Expand All

(-)a/etc/default/zfs.in (+3 lines)
Lines 30-35 ZFS_SHARE='yes' Link Here
30
# Run `zfs unshare -a` during system stop?
30
# Run `zfs unshare -a` during system stop?
31
ZFS_UNSHARE='yes'
31
ZFS_UNSHARE='yes'
32
32
33
# Run `zpool export -a` during system stop?
34
ZPOOL_EXPORT='yes'
35
33
# By default, a verbatim import of all pools is performed at boot based on the
36
# By default, a verbatim import of all pools is performed at boot based on the
34
# contents of the default zpool cache file.  The contents of the cache are
37
# contents of the default zpool cache file.  The contents of the cache are
35
# managed automatically by the 'zpool import' and 'zpool export' commands.
38
# managed automatically by the 'zpool import' and 'zpool export' commands.
(-)a/etc/init.d/zfs-import.in (-1 / +10 lines)
Lines 305-310 do_start() Link Here
305
	fi
305
	fi
306
}
306
}
307
307
308
do_stop()
309
{
310
	if check_boolean "$ZPOOL_EXPORT"
311
	then
312
		zpool export -a
313
	fi
314
}
315
308
# ----------------------------------------------------
316
# ----------------------------------------------------
309
317
310
if [ ! -e /sbin/openrc-run ]
318
if [ ! -e /sbin/openrc-run ]
Lines 314-320 then Link Here
314
			do_start
322
			do_start
315
			;;
323
			;;
316
		stop)
324
		stop)
317
			# no-op
325
			do_stop
318
			;;
326
			;;
319
		status)
327
		status)
320
			do_status
328
			do_status
Lines 334-338 else Link Here
334
	# Create wrapper functions since Gentoo don't use the case part.
342
	# Create wrapper functions since Gentoo don't use the case part.
335
	depend() { do_depend; }
343
	depend() { do_depend; }
336
	start() { do_start; }
344
	start() { do_start; }
345
	stop() { do_stop; }
337
	status() { do_status; }
346
	status() { do_status; }
338
fi
347
fi

Return to bug 919696