package/earlyoom: fix daemon executable path in the init script

earlyoom.mk file explicitly sets 'PREFIX=/usr', and the init script
fails to start earlyoom because of a nonexistent executable path:

  # /etc/init.d/S02earlyoom start
  start-stop-daemon: unable to stat /bin/earlyoom (No such file or directory)
  FAIL

Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit b2fb3a7e2a)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Sergey Bobrenok
2023-05-29 13:43:56 +00:00
committed by Peter Korsgaard
parent 75b55ffc46
commit 268152267e

View File

@@ -9,7 +9,7 @@ EARLYOOM_ARGS=""
start() {
printf() 'Starting %s: ' "$DAEMON"
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/bin/$DAEMON" \
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
-- $EARLYOOM_ARGS
status=$?
if [ "$status" -eq 0 ]; then