Add swap services
This commit is contained in:
parent
0459973315
commit
4a09872fdf
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
define SWAPFILE /dev/Backplane/swap
|
||||||
|
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
emptyenv -p
|
||||||
|
|
||||||
|
swapoff $SWAPFILE
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
define SWAPFILE /dev/Backplane/swap
|
||||||
|
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
emptyenv -p
|
||||||
|
|
||||||
|
swapon $SWAPFILE
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
export VAL 0
|
||||||
|
export SYSCTL vm/swappiness
|
||||||
|
/usr/libexec/nnd/sysctl
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
export VAL 10
|
||||||
|
s6-envdir -I /etc/s6/env/sysctl.vm-swappiness
|
||||||
|
|
||||||
|
export SYSCTL vm/swappiness
|
||||||
|
/usr/libexec/nnd/s6/sysctl
|
Loading…
Reference in New Issue