Changeset 02776dff for bootscripts/lfs/lib/services/init-functions
- Timestamp:
- 01/13/2021 08:44:28 AM (3 years ago)
- Branches:
- 10.1, 10.1-rc1, 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:
- 704e800
- Parents:
- a892a14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/lib/services/init-functions
ra892a14 r02776dff 359 359 progname=`echo "${program}" | sed "s@${prefix}@@"` 360 360 361 if [ -e "/ var/run/${progname}.pid" ]; then362 rm -f "/ var/run/${progname}.pid" 2> /dev/null361 if [ -e "/run/${progname}.pid" ]; then 362 rm -f "/run/${progname}.pid" 2> /dev/null 363 363 fi 364 364 else … … 435 435 436 436 # If a PID file exists with that name, assume that is it. 437 if [ -e "/ var/run/${progname}.pid" ]; then438 pidfile="/ var/run/${progname}.pid"437 if [ -e "/run/${progname}.pid" ]; then 438 pidfile="/run/${progname}.pid" 439 439 fi 440 440 fi … … 529 529 "ID(s) ${pidlist}.${NORMAL}" 530 530 else 531 if [ -n "${base}" -a -e "/ var/run/${base}.pid" ]; then531 if [ -n "${base}" -a -e "/run/${base}.pid" ]; then 532 532 /bin/echo -e "${WARNING}${1} is not running but" \ 533 "/ var/run/${base}.pid exists.${NORMAL}"533 "/run/${base}.pid exists.${NORMAL}" 534 534 else 535 535 if [ -n "${pidfile}" -a -e "${pidfile}" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.