Author: nathan
Date: 2005-03-30 16:19:33 -0700 (Wed, 30 Mar 2005)
New Revision: 4818

Modified:
   trunk/bootscripts/CHANGELOG
   trunk/bootscripts/lfs/init.d/functions
Log:
loadproc returns 0 if program is already running (Breaks LSB, prevents user 
confusion)

Modified: trunk/bootscripts/CHANGELOG
===================================================================
--- trunk/bootscripts/CHANGELOG 2005-03-30 22:16:45 UTC (rev 4817)
+++ trunk/bootscripts/CHANGELOG 2005-03-30 23:19:33 UTC (rev 4818)
@@ -1,5 +1,8 @@
+
 n/a - March 30, 2005
        * Changed from syslog-ng to sysklogd (Archaic)
+       * Temporairly changed loadproc to return 0 if the program is
+         already running (Nathan Coulson)
 
 n/a - March 19, 2005
        * Updated RaQ2 patch (Jim Gifford)

Modified: trunk/bootscripts/lfs/init.d/functions
===================================================================
--- trunk/bootscripts/lfs/init.d/functions      2005-03-30 22:16:45 UTC (rev 
4817)
+++ trunk/bootscripts/lfs/init.d/functions      2005-03-30 23:19:33 UTC (rev 
4818)
@@ -508,6 +508,7 @@
 #       LSB does not say that it should call evaluate_retval
 #       It checks for PIDFILE, which is depreciated.
 #         Will be removed after BLFS 6.0
+#       loadproc returns 0 if program is already running, not LSB compliant
 #
 
#*******************************************************************************
 loadproc()
@@ -561,11 +562,11 @@
                case "${?}" in
                        0)
                                log_warning_msg "Unable to continue: ${1} is 
running"
-                               return 4
+                               return 0 # 4
                                ;;
                        1)
                                log_warning_msg "Unable to continue: ${pidfile} 
exists"
-                               return 4
+                               return 0 # 4
                                ;;
                        3)
                                ;;

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to