cvs commit: LFS/bootscripts/lfs/init.d functions

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Thu May 6 09:11:32 PDT 2004


winkie      04/05/06 10:11:32

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d functions
  Log:
  Quote $PIDFILE usages
  
  Revision  Changes    Path
  1.73      +1 -2      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- CHANGELOG	6 May 2004 16:08:28 -0000	1.72
  +++ CHANGELOG	6 May 2004 16:11:32 -0000	1.73
  @@ -1,8 +1,7 @@
   n/a - May 6, 2004
   
   	* Don't use loadproc in localnet, it's not meant for that
  -	* Quote $PIDFILE when used with -n test parameter, since unexpected (and
  -	  bad) behaviour results otherwise
  +	* Quote tests of $PIDFILE, so that things behave when it's empty
   	* Removed unused kill -0 from killproc
   
   2.1.0 - May 4, 2004
  
  
  
  1.9       +2 -2      LFS/bootscripts/lfs/init.d/functions
  
  Index: functions
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/functions,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- functions	6 May 2004 16:08:28 -0000	1.8
  +++ functions	6 May 2004 16:11:32 -0000	1.9
  @@ -155,7 +155,7 @@
                   exit 1
           fi
   
  -	if [ -n "$PIDFILE" -a -r $PIDFILE ]; then
  +	if [ -n "$PIDFILE" -a -r "$PIDFILE" ]; then
   		pidlist=`cat $PIDFILE`
   	else
   		getpids $1
  @@ -188,7 +188,7 @@
                   fallback=""
           fi
   
  -	if [ -n "$PIDFILE" -a -r $PIDFILE ]; then
  +	if [ -n "$PIDFILE" -a -r "$PIDFILE" ]; then
   		pidlist=`cat $PIDFILE`
   	else
   		getpids $1
  
  
  



More information about the lfs-book mailing list