mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
initscripts: Fix wrong variable check for $PIDFILE in getpids
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>
This commit is contained in:
committed by
Daniel Weismüller
parent
7270984c46
commit
dd8ef8cc10
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user