Ignore:
Timestamp:
03/31/2021 10:41:41 AM (3 years ago)
Author:
Xℹ Ruoyao <xry111@…>
Branches:
ml-11.0, multilib
Children:
9da9d014
Parents:
402226e
git-author:
Thomas Trepl <thomas@…> (02/01/2021 08:37:19 AM)
git-committer:
Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:41 AM)
Message:

Merge changes from trunk to multilib

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@12107 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

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

    r402226e redd83dc  
    359359            progname=`echo "${program}" | sed "s@${prefix}@@"`
    360360
    361             if [ -e "/var/run/${progname}.pid" ]; then
    362                 rm -f "/var/run/${progname}.pid" 2> /dev/null
     361            if [ -e "/run/${progname}.pid" ]; then
     362                rm -f "/run/${progname}.pid" 2> /dev/null
    363363            fi
    364364        else
     
    435435
    436436        # If a PID file exists with that name, assume that is it.
    437         if [ -e "/var/run/${progname}.pid" ]; then
    438             pidfile="/var/run/${progname}.pid"
     437        if [ -e "/run/${progname}.pid" ]; then
     438            pidfile="/run/${progname}.pid"
    439439        fi
    440440    fi
     
    529529         "ID(s) ${pidlist}.${NORMAL}"
    530530   else
    531       if [ -n "${base}" -a -e "/var/run/${base}.pid" ]; then
     531      if [ -n "${base}" -a -e "/run/${base}.pid" ]; then
    532532         /bin/echo -e "${WARNING}${1} is not running but" \
    533             "/var/run/${base}.pid exists.${NORMAL}"
     533            "/run/${base}.pid exists.${NORMAL}"
    534534      else
    535535         if [ -n "${pidfile}" -a -e "${pidfile}" ]; then
Note: See TracChangeset for help on using the changeset viewer.