summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>2009-03-10 15:19:49 +0000
committerguido <guido@FreeBSD.org>2009-03-10 15:19:49 +0000
commit6ff61b7dceb7f17c38ba1c3e5567bf902617923a (patch)
tree659b6eed44d3f05a2df9c3c127432a8969456539 /etc
parent3a33392c2f816de077c726b718d1832a8fefcda3 (diff)
downloadFreeBSD-src-6ff61b7dceb7f17c38ba1c3e5567bf902617923a.zip
FreeBSD-src-6ff61b7dceb7f17c38ba1c3e5567bf902617923a.tar.gz
When swap resides on a mirror and it is not stopped, the mirror
is degraded upon the next reboot and will have to be rebuild. Thus call swapoff when rebooting (read: when stopping swap1)
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/swap12
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/swap1 b/etc/rc.d/swap1
index 71a1908..b51b151 100755
--- a/etc/rc.d/swap1
+++ b/etc/rc.d/swap1
@@ -11,7 +11,7 @@
name="swap1"
start_cmd='swapon -aq'
-stop_cmd=':'
+stop_cmd='swapoff -aq'
load_rc_config swap
run_rc_command "$1"
OpenPOWER on IntegriCloud