[1/2] initscripts: Fix wrong variable check for $PIDFILE in getpids
Commit Message
getpids() checked whether it needed to pass a pid file to pidofproc, but
the check was inverted.
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
---
src/initscripts/system/functions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -407,7 +407,7 @@ pidofproc()
# This will ensure compatibility with previous LFS Bootscripts
getpids()
{
- if [ -z "${PIDFILE}" ]; then
+ if [ -n "${PIDFILE}" ]; then
pidofproc -s -p "${PIDFILE}" $@
else
pidofproc -s $@