aboutsummaryrefslogblamecommitdiff
path: root/sysutils/swapd/files/swapd.in
blob: f5c2fa446e991413138d7f9c67c36438665fd482 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                          
              










                                  
#!/bin/sh

# PROVIDE: swapd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable swapd:
#
# swapd_enable="YES"
#

. /etc/rc.subr

name=swapd
rcvar=`set_rcvar`

command=%%PREFIX%%/sbin/swapd

load_rc_config $name

swapd_enable=${swapd_enable:-"NO"}

run_rc_command "$1"