Changeset 53ea84b for bootscripts/lfs
- Timestamp:
- 01/24/2013 09:45:18 PM (11 years ago)
- Branches:
- 10.0, 10.0-rc1, 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, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, 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:
- 49f236b
- Parents:
- dd5d867
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/lib/services/init-functions
rdd5d867 r53ea84b 523 523 524 524 if [ -n "${pidlist}" ]; then 525 echo -e "${INFO}${base} is running with Process" \525 /bin/echo -e "${INFO}${base} is running with Process" \ 526 526 "ID(s) ${pidlist}.${NORMAL}" 527 527 else 528 528 if [ -n "${base}" -a -e "/var/run/${base}.pid" ]; then 529 echo -e "${WARNING}${1} is not running but" \529 /bin/echo -e "${WARNING}${1} is not running but" \ 530 530 "/var/run/${base}.pid exists.${NORMAL}" 531 531 else 532 532 if [ -n "${pidfile}" -a -e "${pidfile}" ]; then 533 echo -e "${WARNING}${1} is not running" \533 /bin/echo -e "${WARNING}${1} is not running" \ 534 534 "but ${pidfile} exists.${NORMAL}" 535 535 else 536 echo -e "${INFO}${1} is not running.${NORMAL}"536 /bin/echo -e "${INFO}${1} is not running.${NORMAL}" 537 537 fi 538 538 fi … … 567 567 log_success_msg() 568 568 { 569 echo -n -e "${BMPREFIX}${@}"570 echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"569 /bin/echo -n -e "${BMPREFIX}${@}" 570 /bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}" 571 571 572 572 # Strip non-printable characters from log file 573 lo cal logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`573 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 574 574 575 575 timespec 576 echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG}576 /bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG} 577 577 578 578 return 0 … … 581 581 log_success_msg2() 582 582 { 583 echo -n -e "${BMPREFIX}${@}"584 echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"583 /bin/echo -n -e "${BMPREFIX}${@}" 584 /bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}" 585 585 586 586 echo " OK" >> ${BOOTLOG} … … 602 602 log_failure_msg() 603 603 { 604 echo -n -e "${BMPREFIX}${@}"605 echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"604 /bin/echo -n -e "${BMPREFIX}${@}" 605 /bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}" 606 606 607 607 # Strip non-printable characters from log file 608 608 609 609 timespec 610 lo cal logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`611 echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG}610 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 611 /bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG} 612 612 613 613 return 0 … … 616 616 log_failure_msg2() 617 617 { 618 echo -n -e "${BMPREFIX}${@}"619 echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"618 /bin/echo -n -e "${BMPREFIX}${@}" 619 /bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}" 620 620 621 621 echo "FAIL" >> ${BOOTLOG} … … 635 635 log_warning_msg() 636 636 { 637 echo -n -e "${BMPREFIX}${@}"638 echo -e "${CURS_ZERO}${WARNING_PREFIX}${SET_COL}${WARNING_SUFFIX}"637 /bin/echo -n -e "${BMPREFIX}${@}" 638 /bin/echo -e "${CURS_ZERO}${WARNING_PREFIX}${SET_COL}${WARNING_SUFFIX}" 639 639 640 640 # Strip non-printable characters from log file 641 lo cal logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`641 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 642 642 timespec 643 echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG}643 /bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG} 644 644 645 645 return 0 … … 657 657 log_info_msg() 658 658 { 659 echo -n -e "${BMPREFIX}${@}"659 /bin/echo -n -e "${BMPREFIX}${@}" 660 660 661 661 # Strip non-printable characters from log file 662 lo cal logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`662 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 663 663 timespec 664 echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG}664 /bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG} 665 665 666 666 return 0 … … 669 669 log_info_msg2() 670 670 { 671 echo -n -e "${@}"671 /bin/echo -n -e "${@}" 672 672 673 673 # Strip non-printable characters from log file 674 lo cal logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`675 echo -n -e "${logmessage}" >> ${BOOTLOG}674 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 675 /bin/echo -n -e "${logmessage}" >> ${BOOTLOG} 676 676 677 677 return 0
Note:
See TracChangeset
for help on using the changeset viewer.