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>
This commit is contained in:
Sergey Bobrenok 2023-05-29 13:43:56 +00:00 committed by Peter Korsgaard
parent f1e3d02cd4
commit b2fb3a7e2a

View File

@ -9,7 +9,7 @@ EARLYOOM_ARGS=""
start() { start() {
printf() 'Starting %s: ' "$DAEMON" 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 -- $EARLYOOM_ARGS
status=$? status=$?
if [ "$status" -eq 0 ]; then if [ "$status" -eq 0 ]; then