freebsd-dev/sbin/init/rc.d/swaplate
Brad Davis 1135e97b7c Move rc startup scripts from etc/ to sbin/init/
This keeps most startup scripts as CONFS per discussion on src-committers from
back during BSDCan.

Approved by:	will (mentor)
Differential Revision:	https://reviews.freebsd.org/D16466
2018-07-28 20:36:23 +00:00

19 lines
258 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# 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
run_rc_command "$1"