You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
442 B

[main]
@type = oneshot
@version = 0.0.2
@description = "Manage zram swap space"
@user = ( root )
[start]
@execute = (
execl-cmdline -s {
export ZRAM_COMP_ALGORITHM ${ZRAM_COMP_ALGORITHM}
export ZRAM_PRIORITY ${ZRAM_PRIORITY}
export ZRAM_SIZE ${ZRAM_SIZE}
export ZRAM_STREAMS ${ZRAM_STREAMS}
zramen make }
)
[stop]
@execute = ( zramen toss )
[environment]
ZRAM_COMP_ALGORITHM=lz4
ZRAM_PRIORITY=32767
ZRAM_SIZE=25
ZRAM_STREAMS=1