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)
This commit is contained in:
parent
b860cb2652
commit
9dbd9d018b
@ -11,7 +11,7 @@
|
||||
|
||||
name="swap1"
|
||||
start_cmd='swapon -aq'
|
||||
stop_cmd=':'
|
||||
stop_cmd='swapoff -aq'
|
||||
|
||||
load_rc_config swap
|
||||
run_rc_command "$1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user