Ignore:
Timestamp:
04/28/2021 09:40:51 PM (3 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
99ee345
Parents:
c461bd9
Message:

Add manual locales needed for tests if using alternate locale installation
instructions.

Minor changes to boot scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/lib/services/init-functions

    rc461bd9 r49e360b9  
    284284            # Program is not running, but an invalid pid file exists
    285285            # Remove the pid file.
    286             rm -f "${pidfile}"
     286
     287            progname=${program##*/}
     288
     289            if [[ -e "/run/${progname}.pid" ]]; then
     290                pidfile="/run/${progname}.pid"
     291                rm -f "${pidfile}"
     292            fi
    287293
    288294            # This is only a success if no signal was passed.
     
    714720################################################################################
    715721# check_signal()                                                               #
    716 # Usage: check_signal [ -{signal} | {signal} ]                                 #
     722# Usage: check_signal [ -{signal} ]                                            #
    717723#                                                                              #
    718724# Purpose: Check for a valid signal.  This is not defined by any LSB draft,    #
     
    720726#          signals chosen are invalid arguments to the other functions.        #
    721727#                                                                              #
    722 # Inputs: Accepts a single string value in the form or -{signal} or {signal}   #
     728# Inputs: Accepts a single string value in the form of -{signal}               #
    723729#                                                                              #
    724730# Return values:                                                               #
     
    731737
    732738    # Add error handling for invalid signals
    733     valsig="-ALRM -HUP -INT -KILL -PIPE -POLL -PROF -TERM -USR1 -USR2"
     739    valsig=" -ALRM -HUP -INT -KILL -PIPE -POLL -PROF -TERM -USR1 -USR2"
    734740    valsig="${valsig} -VTALRM -STKFLT -PWR -WINCH -CHLD -URG -TSTP -TTIN"
    735741    valsig="${valsig} -TTOU -STOP -CONT -ABRT -FPE -ILL -QUIT -SEGV -TRAP"
    736742    valsig="${valsig} -SYS -EMT -BUS -XCPU -XFSZ -0 -1 -2 -3 -4 -5 -6 -8 -9"
    737     valsig="${valsig} -11 -13 -14 -15"
     743    valsig="${valsig} -11 -13 -14 -15 "
    738744
    739745    echo "${valsig}" | grep -- " ${1} " > /dev/null
     
    766772
    767773    # The list of termination signals (limited to generally used items)
    768     valsig="-ALRM -INT -KILL -TERM -PWR -STOP -ABRT -QUIT -2 -3 -6 -9 -14 -15"
     774    valsig=" -ALRM -INT -KILL -TERM -PWR -STOP -ABRT -QUIT -2 -3 -6 -9 -14 -15 "
    769775
    770776    echo "${valsig}" | grep -- " ${1} " > /dev/null
Note: See TracChangeset for help on using the changeset viewer.