aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/swaplate
blob: da86cb2bf686c746ef3f6d4c038741f411f787d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
#

# PROVIDE: swaplate
# REQUIRE: mountlate
# KEYWORD: nojail shutdown

. /etc/rc.subr

name="swaplate"
desc="Setup late swap space"
start_cmd='/sbin/swapon -aLq'
stop_cmd='/sbin/swapoff -aLq'

load_rc_config swap

# doesn't make sense to run in a svcj: privileged operations
swaplate_svcj="NO"

run_rc_command "$1"