Skip to main content
Topic: Earlyoom runit log problem (Read 55 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Earlyoom runit log problem

Hello,

So i intalled earlyoom and earlyoom runit, i did the link from /etc to /run as usual.
So when i check my service it did run

Code: [Select]
> [rsm] - ahloi (/etc/runit/runsvdir/default) - 9 services

   SERVICE              STATE   ENABLED   PID      COMMAND           TIME
 ✔ agetty-tty1          run     true      918      login -- ahloi    35 minutes
 ✔ agetty-tty2          run     true      912      agetty            35 minutes
 ✔ agetty-tty3          run     true      902      agetty            35 minutes
 ✔ dbus                 run     true      911      dbus-daemon       35 minutes
 ✔ dhcpcd               run     true      906      dhcpcd: [manager] 35 minutes
 ✔ earlyoom             run     true      909      earlyoom          35 minutes
 ✔ logind               run     true      910      elogind           35 minutes
 ✔ ntpd                 run     true      2514     ntpd              8 minutes
 ✔ udevd                run     true      903      udevd             35 minutes

The first problem is the log start spamming in tty1 everytime i login via startx, i google and found a thread that just make a log file in the relevant runit service folder, so i did.
Now it doesn't spam the tty but in htop i have this error

Code: [Select]
888 root        20   0  2564  1292  1292 S   0.0  0.0  0:00.26 runsvdir -P /run/runit/service log: m: fatal: unable to start log/./run: exec format error runsv earlyoom: fatal: unable to start log/./run: e

So can someone help me to solve this.

Re: Earlyoom runit log problem

Reply #1
#UPDATE

I decide to start over, so i uninstall unlink earlyoom sv , i delete the edited /etc/sv/earlyoom.

Then i installed earlyoom, earlyoom-runit again, then i check earlyoom documentation, then i found out i can limit the memory report, then i put the flags directly to /etc/runit/sv/earlyoom/run from

Code: [Select]
exec earlyoom $EARLYOOM_ARGS

to

Code: [Select]
exec earlyoom $EARLYOOM_ARGS -r 3600

i saved the file, then i link sv file to run/runit/service and i rebooted, i no longer see log spamming tty/startx, i login and check htop no error.

Finally my day is at peace, now i can go enjoy youtube or something to celebrate.