[blfs-book] r10335 - in trunk/bootscripts: . blfs/init.d

dj at linuxfromscratch.org dj at linuxfromscratch.org
Sun Jun 17 01:47:35 PDT 2012


Author: dj
Date: 2012-06-17 02:47:26 -0600 (Sun, 17 Jun 2012)
New Revision: 10335

Modified:
   trunk/bootscripts/ChangeLog
   trunk/bootscripts/blfs/init.d/sshd
Log:
Correct sshd return value.

Modified: trunk/bootscripts/ChangeLog
===================================================================
--- trunk/bootscripts/ChangeLog	2012-06-17 00:12:16 UTC (rev 10334)
+++ trunk/bootscripts/ChangeLog	2012-06-17 08:47:26 UTC (rev 10335)
@@ -1,9 +1,12 @@
-2012-05-09 Bruce Dubbs <ken at linuxfromscratch.org>
+2012-06-17 DJ Lucas <dj at linuxfromscratch.org>
+   * Fix sshd return value when stopping without running.
+
+2012-05-09 Bruce Dubbs <bdubbs at linuxfromscratch.org>
    * Add atd script.
    * Make service scripts compatible with older versions of 
      init-functions.
 
-2012-05-06 Bruce Dubbs <ken at linuxfromscratch.org>
+2012-05-06 Bruce Dubbs <bdubbs at linuxfromscratch.org>
    * Update exim script to be compatible with LFS 7.0+.
 
 2012-05-02 Ken Moffat <ken at linuxfromscratch.org>

Modified: trunk/bootscripts/blfs/init.d/sshd
===================================================================
--- trunk/bootscripts/blfs/init.d/sshd	2012-06-17 00:12:16 UTC (rev 10334)
+++ trunk/bootscripts/blfs/init.d/sshd	2012-06-17 08:47:26 UTC (rev 10335)
@@ -41,11 +41,7 @@
 
     stop)
         log_info_msg "Stopping SSH Server..."
-        
-        if [ -e "/run/sshd.pid" ]; then
-           killproc -p "/run/sshd.pid" /usr/sbin/sshd
-        else
-           (exit 1)
+        killproc -p "/run/sshd.pid" /usr/sbin/sshd
         fi
         
         evaluate_retval




More information about the blfs-book mailing list