mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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
|
# This will ensure compatibility with previous LFS Bootscripts
|
||||||
getpids()
|
getpids()
|
||||||
{
|
{
|
||||||
if [ -z "${PIDFILE}" ]; then
|
if [ -n "${PIDFILE}" ]; then
|
||||||
pidofproc -s -p "${PIDFILE}" $@
|
pidofproc -s -p "${PIDFILE}" $@
|
||||||
else
|
else
|
||||||
pidofproc -s $@
|
pidofproc -s $@
|
||||||
|
|||||||
Reference in New Issue
Block a user