Changeset 716db1f for bootscripts/lfs/lib/services/init-functions
- Timestamp:
- 09/20/2021 07:37:34 AM (3 years ago)
- Branches:
- multilib
- Children:
- 60870bc
- Parents:
- e680022 (diff), 7e62bbc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/lib/services/init-functions
re680022 r716db1f 1 1 #!/bin/sh 2 2 ######################################################################## 3 # 3 # 4 4 # Begin /lib/lsb/init-funtions 5 5 # … … 155 155 fi 156 156 157 # Return a value ONLY 157 # Return a value ONLY 158 158 # It is the init script's (or distribution's functions) responsibilty 159 159 # to log messages! … … 161 161 162 162 0) 163 # Program is already running correctly, this is a 163 # Program is already running correctly, this is a 164 164 # successful start. 165 165 return 0 … … 231 231 shift 2 232 232 ;; 233 233 234 234 *) 235 235 program="${1}" … … 244 244 if [ -n "${3}" ]; then 245 245 return 2 246 else 246 else 247 247 break 248 fi 248 fi 249 249 ;; 250 250 esac … … 322 322 if [ "${?}" -eq "0" ]; then # Signal is used to terminate the program 323 323 324 # Account for empty pidlist (pid file still exists and no 324 # Account for empty pidlist (pid file still exists and no 325 325 # signal was given) 326 326 if [ "${pidlist}" != "" ]; then … … 337 337 kill "${signal}" "${pid}" 2> /dev/null 338 338 339 # Wait up to ${delay}/10 seconds to for "${pid}" to 339 # Wait up to ${delay}/10 seconds to for "${pid}" to 340 340 # terminate in 10ths of a second 341 341 … … 434 434 prefix=`echo "${program}" | sed 's/[^/]*$//'` 435 435 436 if [ -z "${prefix}" ]; then 436 if [ -z "${prefix}" ]; then 437 437 progname="${program}" 438 438 else … … 584 584 timespec 585 585 /bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG} 586 586 587 587 return 0 588 588 } … … 594 594 595 595 echo " OK" >> ${BOOTLOG} 596 596 597 597 return 0 598 598 } … … 619 619 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 620 620 /bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG} 621 621 622 622 return 0 623 623 } … … 629 629 630 630 echo "FAIL" >> ${BOOTLOG} 631 631 632 632 return 0 633 633 } … … 651 651 timespec 652 652 /bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG} 653 653 654 654 return 0 655 655 } … … 663 663 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 664 664 /bin/echo "SKIP" >> ${BOOTLOG} 665 665 666 666 return 0 667 667 } … … 684 684 timespec 685 685 /bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG} 686 686 687 687 return 0 688 688 } … … 695 695 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 696 696 /bin/echo -n -e "${logmessage}" >> ${BOOTLOG} 697 697 698 698 return 0 699 699 }
Note:
See TracChangeset
for help on using the changeset viewer.