summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/swap
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/swap')
-rwxr-xr-xetc/rc.d/swap17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/rc.d/swap b/etc/rc.d/swap
new file mode 100755
index 0000000..4122e61
--- /dev/null
+++ b/etc/rc.d/swap
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: swap
+# REQUIRE: disks
+# KEYWORD: nojail shutdown
+
+. /etc/rc.subr
+
+name="swap"
+start_cmd='/sbin/swapon -aq'
+stop_cmd=':'
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud