freebsd-dev/etc/rc.d/swap1
Guido van Rooij 9dbd9d018b When swap resides on a mirror and it is not stopped, the mirror
is degraded upon the next reboot and will have to be rebuild.
Thus call swapoff when rebooting (read: when stopping swap1)
2009-03-10 15:19:49 +00:00

18 lines
209 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: localswap
# REQUIRE: disks
# KEYWORD: nojail shutdown
. /etc/rc.subr
name="swap1"
start_cmd='swapon -aq'
stop_cmd='swapoff -aq'
load_rc_config swap
run_rc_command "$1"