Pārlūkot izejas kodu

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 b2fb3a7e2a06c10092280081e45b2b8841add5d2)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Sergey Bobrenok 2 gadi atpakaļ
vecāks
revīzija
268152267e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      package/earlyoom/S02earlyoom

+ 1 - 1
package/earlyoom/S02earlyoom

@@ -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