summaryrefslogtreecommitdiffstats
path: root/etc/init.d/zfs.redhat.in
diff options
context:
space:
mode:
authorTurbo Fredriksson <[email protected]>2013-04-14 17:41:51 +0200
committerBrian Behlendorf <[email protected]>2013-04-24 16:18:44 -0700
commit382c4e5184c9caa25e85f277564657243db2a150 (patch)
tree70f82019efca38b476ac865a2911e2d52f30dabf /etc/init.d/zfs.redhat.in
parentc4933aade7ecf8a933c4404ea3f99cac5820bd57 (diff)
Possibility to disable (not start) zfs at bootup.
Signed-off-by: Brian Behlendorf <[email protected]> Issue #1402
Diffstat (limited to 'etc/init.d/zfs.redhat.in')
-rw-r--r--etc/init.d/zfs.redhat.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/init.d/zfs.redhat.in b/etc/init.d/zfs.redhat.in
index ae797c11a..fb5187f05 100644
--- a/etc/init.d/zfs.redhat.in
+++ b/etc/init.d/zfs.redhat.in
@@ -25,6 +25,11 @@
export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
+if [ -z "$init" ]; then
+ # Not interactive
+ grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3
+fi
+
# Source function library & LSB routines
. /etc/rc.d/init.d/functions