initscripts: Don't overwrite the PID file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-03-23 14:35:39 +01:00
parent 3f863ee70d
commit db09ea9e5c

View File

@@ -522,11 +522,10 @@ loadproc()
( (
${cmd[@]} &>/dev/null ${cmd[@]} &>/dev/null
) & ) &
pid="$$" pid="$!"
evaluate_retval evaluate_retval
else else
${cmd[@]} ${cmd[@]}
pid="$$"
evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts
fi fi