diff options
Diffstat (limited to 'libexec/rc/rc.d/swap')
-rwxr-xr-x | libexec/rc/rc.d/swap | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/swap b/libexec/rc/rc.d/swap new file mode 100755 index 000000000000..f7663fc422bf --- /dev/null +++ b/libexec/rc/rc.d/swap @@ -0,0 +1,21 @@ +#!/bin/sh +# +# + +# PROVIDE: swap +# REQUIRE: disks +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="swap" +desc="Setup swap space" +start_cmd='/sbin/swapon -aq' +stop_cmd=':' + +load_rc_config $name + +# doesn't make sense to run in a svcj: privileged operations +swap_svcj="NO" + +run_rc_command "$1" |