Add swap services

This commit is contained in:
Alex D. 2023-07-15 16:41:33 +00:00
parent 0459973315
commit 4a09872fdf
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
9 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/bin/execlineb -P
define SWAPFILE /dev/Backplane/swap
s6-envdir -i /etc/s6/env/path
emptyenv -p
swapoff $SWAPFILE

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,7 @@
#!/bin/execlineb -P
define SWAPFILE /dev/Backplane/swap
s6-envdir -i /etc/s6/env/path
emptyenv -p
swapon $SWAPFILE

View File

@ -0,0 +1,4 @@
#!/bin/execlineb -P
export VAL 0
export SYSCTL vm/swappiness
/usr/libexec/nnd/sysctl

View File

@ -0,0 +1 @@
oneshot

View File

@ -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