1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 01:35:13 +03:00
aports/testing/low-memory-monitor/low-memory-monitor.initd
Leo 83418e9646 testing/low-memory-monitor: new aport
https://gitlab.freedesktop.org/hadess/low-memory-monitor
Daemon to monitor memory usage and signal processes and the kernel

Closes !101
2019-09-28 08:29:18 +00:00

18 lines
514 B
Text

#!/sbin/openrc-run
supervisor=supervise-daemon
name="Low Memory Monitor"
description="Read memory pressure information and signal user processes and kernel OOM accordingly"
command=/usr/libexec/low-memory-monitor
depend() {
need localmount
}
start_pre() {
# We need /proc/pressure directory that contains information about memory
# pressure. this requires CONFIG_PSI=y, if CONFIG_PSI_DEFAULT_DISABLED is
# also used then you need to pass pse=1 on the kernel cmdline
checkpath --directory /proc/pressure
}