vp-build/templates/initscripts/files/rc.d/swap

21 lines
253 B
Plaintext
Raw Normal View History

#!/bin/sh
#
# PROVIDE: swap
# REQUIRE: SERVERS mountfs
$_rc_subr_loaded . /etc/rc.subr
name="swap"
start_cmd="swap_start"
stop_cmd=":"
swap_start()
{
echo -n "=> Activating swap... "
swapon -a
show_rval
}
load_rc_config $name
run_rc_command "$1"