Changeset ceed481


Ignore:
Timestamp:
10/26/2008 06:58:59 AM (15 years ago)
Author:
DJ Lucas <dj@…>
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, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 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:
53eeda09
Parents:
6da4dd7
Message:

Added Dan Nicholson's patch for #2160, and cleaned up tab/spacing in changelog.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8701 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
bootscripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    r6da4dd7 rceed481  
     12008-10-26      Dan Nicholson   <dnicholson@linuxfromscratch.org>
     2        * lfs/init.d/functions: Remove stale pid files when encountered
     3          in loadproc/killproc/reloadproc. When the bootscript specifies
     4          a pid file to use with the "-p pidfile" argument, *proc
     5          functions previously bailed out when the referenced file
     6          contains an invalid pid.
     7
    182008-10-23      DJ Lucas        <dj@linuxfromscratch.org>
    29        * lfs/init.d/console: Removed BROKEN_COMPOSE as kernel patch has
    310          been accepted upstream.
    4  
     11
    5122008-05-21      Bryan Kadzban   <bryan@linuxfromscratch.org>
    613        * lfs/init.d/udev: lfs/init.d/udev_retry: Use new udevadm program.
     
    101108        * Removed console config file and makefile targets.
    102109        * Removed references to /dev/bug and bugreport in udevand
    103           udev_retry bootscripts. (DJ Lucas)
     110          udev_retry bootscripts. (DJ Lucas)
    104111n/a - April 17, 2006
    105112        * Updated udev script to use the new udevsettle program.
     
    109116n/a - April 15, 2006
    110117        * Cleaned up contrib directory.  Removed: contrib/init.d,
    111           contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2
     118          contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2
    112119          patch. (DJ Lucas)
    113120
    114121n/a - April 14, 2006
    115         * Merged changes from udev_update branch (DJ Lucas)
     122        * Merged changes from udev_update branch (DJ Lucas)
    116123        * Replaced a return with an exit and reversed comment changes in
    117           udev bootscript. (Dan Nicholson)
     124          udev bootscript. (Dan Nicholson)
    118125        * Replaced walk_sysfs function in udev bootscript with new udevtrigger
    119           program and move wait_for_uevents function inline. (DJ Lucas)
     126          program and move wait_for_uevents function inline. (DJ Lucas)
    120127        * Removed extra evaluate_retval in udev bootscript. (Ken Moffat)
    121         * Wait for uevents to be processed in the udev script.  See ticket #1720
    122           for details. (Matthew Burgess)
     128        * Wait for uevents to be processed in the udev script.  See ticket
     129          #1720 for details. (Matthew Burgess)
    123130
    124131n/a - March 21, 2006
    125         * Removed old references to boot_log function and arguments passed
    126           to boot_mesg_flush in echo_* functions. (DJ Lucas)
     132        * Removed old references to boot_log function and arguments passed
     133          to boot_mesg_flush in echo_* functions. (DJ Lucas)
    127134
    128135n/a - March 10, 2006
    129136        * Moved src argument to ipv4-static-route service script and
    130           removed from ipv4-static service script. (DJ Lucas)
     137          removed from ipv4-static service script. (DJ Lucas)
    131138
    132139n/a - March 8. 2006
     
    288295        * syslog-ng is now installed by default (Jeremy Utley)
    289296        * hotplug is now installed by default (Jeremy Utley)
    290         * udev now uses /sbin/hotplug as the default hotplug handler (Nathan Coulson)
     297        * udev now uses /sbin/hotplug as the default hotplug handler
     298          (Nathan Coulson)
    291299        * udev now mounts a tmpfs instead of a ramfs onto /dev,
    292300          as suggested by Greg K-H (Nathan Coulson)
     
    355363
    356364n/a - September 21, 2004
    357         * boot_mesg has been enhanced.  Subsequent calls will overwrite previous
    358           text, and it will wrap text basedupon the variable ${WCOL}.
     365        * boot_mesg has been enhanced.  Subsequent calls will overwrite
     366          previous text, and it will wrap text basedupon the variable ${WCOL}.
    359367          (James Robertson)
    360368        * Fixed mtu optional service typo (Kevin P Fleming)
     
    807815        * Fixed Makefile rc.6 to reboot
    808816        * Added -s flag to grep command in rc.d/init.d/network -
    809           suppresses an error if no ifconfig.* files exist
     817          suppresses an error if no ifconfig.* files exist
    810818
    811819n/a - January 30, 2004:
     
    828836
    829837        * New maintainers for the lfs-bootscripts package are:
    830         Jeremy Utley (jeremy@linuxfromscratch.org)
    831         Nathan Coulson (nathan@linuxfromscratch.org)
     838          Jeremy Utley (jeremy@linuxfromscratch.org)
     839          Nathan Coulson (nathan@linuxfromscratch.org)
    832840
    8338411.11 - February 3rd, 2003:
     
    839847
    840848        * Fixed up checkfs to work with non-ext2 filesystems too (such as
    841         minix).
     849          minix).
    842850
    8438511.9 - April 5th, 2002:
     
    885893
    886894        * replaced -o %PPID with -o $PPID throughout the functions script. This
    887         construct does what it's supposed to do (don't take PPID into account
    888         because this would fail if a running daemon and the bootscript have
    889         the same name).
     895          construct does what it's supposed to do (don't take PPID into account
     896          because this would fail if a running daemon and the bootscript have
     897          the same name).
    890898
    891899        * added 'restart' to the swap script
     
    915923
    916924        * removed the emptying of /etc/mtab since it's a symlink to
    917          /proc/mounts now
     925          /proc/mounts now
    918926
    919927        * added the mountproc script which mounts the proc system. This is done
  • bootscripts/lfs/init.d/functions

    r6da4dd7 rceed481  
    292292        fi
    293293
     294        # Warn about stale pid file
     295        if [ "$?" = 1 ]; then
     296                boot_mesg -n "Removing stale pid file: ${pidfile}. " ${WARNING}
     297                rm -f "${pidfile}"
     298        fi
     299
    294300        if [ -n "${pidlist}" ]; then
    295301                for pid in ${pidlist}
     
    505511#          return 4 - Program or service status is unknown
    506512#
    507 # Dependencies: nice
     513# Dependencies: nice, rm
    508514#
    509515# Todo: LSB says this should be called start_daemon
     
    568574                                ;;
    569575                        1)
    570                                 log_warning_msg "Unable to continue: ${pidfile} exists"
    571                                 return 0 # 4
     576                                boot_mesg "Removing stale pid file: ${pidfile}" ${WARNING}
     577                                rm -f "${pidfile}"
    572578                                ;;
    573579                        3)
     
    599605#          return 4 - Unknown Status
    600606#
    601 # Dependencies: kill
     607# Dependencies: kill, rm
    602608#
    603609# Todo: LSB does not say that it should call evaluate_retval
     
    647653        else
    648654                pidofproc -s -p "${pidfile}" "${1}"
     655        fi
     656
     657        # Remove stale pidfile
     658        if [ "$?" = 1 ]; then
     659                boot_mesg "Removing stale pid file: ${pidfile}." ${WARNING}
     660                rm -f "${pidfile}"
    649661        fi
    650662
Note: See TracChangeset for help on using the changeset viewer.