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:
parent
f1e3d02cd4
commit
b2fb3a7e2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user