Browse Source

system/earlyoom: Updated for version 1.9.0.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/334/head
B. Watson 2 weeks ago
committed by Willy Sudiarto Raharjo
parent
commit
d33ad0301b
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 30
      system/earlyoom/earlyoom.8
  2. 15
      system/earlyoom/earlyoom.SlackBuild
  3. 6
      system/earlyoom/earlyoom.info

30
system/earlyoom/earlyoom.8

@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "earlyoom" "8" "August 2024" "1.8.2" "Linux System Administrator\[cq]s Manual"
.TH "earlyoom" "8" "September 2025" "1.9.0" "Linux System Administrator\[cq]s Manual"
.hy
.SH NAME
.PP
@ -157,7 +157,7 @@ systembus-notify (https://github.com/rfjakob/systembus-notify) running
as your user.
.SS -N /PATH/TO/SCRIPT
.PP
Run the given script for each process killed.
Run the given script for each process killed, afterwards.
Must be an absolute path.
.PP
Within the script, information about the killed process can be obtained
@ -175,6 +175,23 @@ EARLYOOM_UID UID of the user running the process
WARNING: \f[V]EARLYOOM_NAME\f[R] can contain spaces, newlines, special
characters and is controlled by the user, or it can be empty!
Make sure that your notification script can handle that!
.SS -P /PATH/TO/SCRIPT
.PP
Run the given script for each process killed, beforehand.
Must be an absolute path.
.PP
See \f[V]-N\f[R], it behaves in the same way except being run before the
process is killed.
.PP
Note that there is a small delay (200 milliseconds) in killing the
chosen victim to give some room for this program to be spawned and do
something meaningful.
The invoked program has to be very fast to gather information from the
running process before it gets killed.
.PP
Any such delay, and the extra resources taken by the spawned process,
always take some toll and further stress the already stressed system.
Therefore, the invoked process should be as lean and fast as possible.
.SS -g
.PP
Kill all processes that have same process group id (PGID) as the process
@ -248,11 +265,6 @@ dry run (do not kill any processes)
.SS --syslog
.PP
use syslog instead of std streams.
.PP
The --syslog option may be useful for systems that don\[cq]t run
systemd.
See https://github.com/rfjakob/earlyoom/pull/292 for some background
info.
.SS -h, --help
.PP
this help text
@ -315,9 +327,9 @@ process gets an effective \f[V]oom_score\f[R] of at least 300.
See https://github.com/rfjakob/earlyoom/issues/159 for details.
.SH AUTHOR
.PP
The author of earlyoom is Jakob Unterwurzacher <jakobunt@gmail.com>.
The author of earlyoom is Jakob Unterwurzacher <jakobunt\[at]gmail.com>.
.PP
This manual page was written by Yangfl <mmyangfl@gmail.com>, for the
This manual page was written by Yangfl <mmyangfl\[at]gmail.com>, for the
Debian project (and may be used by others).
.SH SEE ALSO
.PP

15
system/earlyoom/earlyoom.SlackBuild

@ -23,6 +23,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20250923 bkw: update for v1.9.0.
# 20240807 bkw: update for v1.8.2.
# 20230829 bkw: BUILD=2
# - add LICENSE and README.md to the doc dir.
@ -35,7 +36,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=earlyoom
VERSION=${VERSION:-1.8.2}
VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -90,11 +91,13 @@ sed -i "/^CFLAGS/s,-Wall,& $SLKCFLAGS," Makefile
# comments in the /etc/default file.
sed -i 's,/etc/init.d/.*,/etc/rc.d/rc.earlyoom,' earlyoom.default
# 20230829 bkw: note to self: non-canonical use of BINDIR here. It's not
# the full path (/usr/sbin), it gets PREFIX prepended to it.
make PREFIX=/usr BINDIR=/sbin
strip $PRGNAM
make DESTDIR=$PKG PREFIX=/usr BINDIR=/sbin install-bin
# 20250923 bkw: it wants to use 'git tag' to get the version number and
# ends up embedding (unknown version), help it out a little.
make VERSION=$VERSION
# 20250923 bkw: 'make install' inconsistent between versions, just boils
# down to this anyway:
install -s -m0755 -D $PRGNAM $PKG/usr/sbin/$PRGNAM
# 20230829 bkw: prebuilt man page is a bit different from the generated one:
# - it's a section 8 page.

6
system/earlyoom/earlyoom.info

@ -1,8 +1,8 @@
PRGNAM="earlyoom"
VERSION="1.8.2"
VERSION="1.9.0"
HOMEPAGE="https://github.com/rfjakob/earlyoom"
DOWNLOAD="https://github.com/rfjakob/earlyoom/archive/v1.8.2/earlyoom-1.8.2.tar.gz"
MD5SUM="efe012c5e345a367132337ab102d0f6f"
DOWNLOAD="https://github.com/rfjakob/earlyoom/archive/v1.9.0/earlyoom-1.9.0.tar.gz"
MD5SUM="ce0cfaca4b8563140a9b64a19f255ed0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

Loading…
Cancel
Save