diff options
Diffstat (limited to 'libexec/rc/rc.d/swaplate')
-rwxr-xr-x | libexec/rc/rc.d/swaplate | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/swaplate b/libexec/rc/rc.d/swaplate new file mode 100755 index 000000000000..da86cb2bf686 --- /dev/null +++ b/libexec/rc/rc.d/swaplate @@ -0,0 +1,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" |