9dbd9d018b
is degraded upon the next reboot and will have to be rebuild. Thus call swapoff when rebooting (read: when stopping swap1)
18 lines
209 B
Bash
Executable File
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"
|