freebsd-skq/etc/rc.d/swap1
Pawel Jakub Dawidek 9468063a70 Teach swap1 script how to remove added swap devices on system shutdown.
Without this change, if one had a swap-on-mirror configuration, gmirror
will rebuild mirror component(s) on boot, because they are dirty (they
were open on shutdown).
2004-09-17 17:58:19 +00:00

19 lines
270 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: swap1,v 1.8 2002/03/24 15:52:41 lukem Exp $
# $FreeBSD$
#
# PROVIDE: localswap
# REQUIRE: disks
# KEYWORD: FreeBSD nojail shutdown
. /etc/rc.subr
name="swap1"
start_cmd='swapon -a'
stop_cmd='swapoff -a'
load_rc_config swap
run_rc_command "$1"