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

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Thu May 6 09:08:28 PDT 2004


winkie      04/05/06 10:08:28

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d functions
  Log:
  
  
  Revision  Changes    Path
  1.72      +3 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- CHANGELOG	6 May 2004 16:02:06 -0000	1.71
  +++ CHANGELOG	6 May 2004 16:08:28 -0000	1.72
  @@ -1,6 +1,9 @@
   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
  +	* Removed unused kill -0 from killproc
   
   2.1.0 - May 4, 2004
   
  
  
  
  1.8       +5 -5      LFS/bootscripts/lfs/init.d/functions
  
  Index: functions
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/functions,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- functions	4 May 2004 22:35:31 -0000	1.7
  +++ functions	6 May 2004 16:08:28 -0000	1.8
  @@ -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
  @@ -207,9 +207,9 @@
                                   i=$(($i+1))
                           done
   
  -                        if [ -n "$fallback" ]; then kill -$fallback $pid 2>/dev/null; fi
  -
  -                        kill -0 $pid 2>/dev/null
  +                        if [ -n "$fallback" ]; then
  +				kill -$fallback $pid 2>/dev/null
  +			fi
                   done
   
   		getpids $1
  
  
  



More information about the lfs-book mailing list