aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/swaplate
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.d/swaplate')
-rwxr-xr-xlibexec/rc/rc.d/swaplate18
1 files changed, 18 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/swaplate b/libexec/rc/rc.d/swaplate
new file mode 100755
index 000000000000..fbfae2ad9bfe
--- /dev/null
+++ b/libexec/rc/rc.d/swaplate
@@ -0,0 +1,18 @@
+#!/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"