diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-01-09 08:56:33 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-09 08:56:33 +0100 |
commit | b34c159aafb5053578ef5222224850218c3497eb (patch) | |
tree | 598c6d3f3956d25cd201c8608aa6439c27da8907 /community/low-memory-monitor/low-memory-monitor.initd | |
parent | b08a407c1d942cf0445a40a5450038963f1e894e (diff) | |
download | aports-b34c159aafb5053578ef5222224850218c3497eb.tar.bz2 aports-b34c159aafb5053578ef5222224850218c3497eb.tar.xz |
community/low-memory-monitor: move from testing
Diffstat (limited to 'community/low-memory-monitor/low-memory-monitor.initd')
-rw-r--r-- | community/low-memory-monitor/low-memory-monitor.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community/low-memory-monitor/low-memory-monitor.initd b/community/low-memory-monitor/low-memory-monitor.initd new file mode 100644 index 0000000000..62f39560d3 --- /dev/null +++ b/community/low-memory-monitor/low-memory-monitor.initd @@ -0,0 +1,18 @@ +#!/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 psi=1 on the kernel cmdline + checkpath --directory /proc/pressure +} |