commit c2560889698c1ed0b1ad9620e848e124ca6df8e2
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Tue Apr 7 13:23:36 2015 +0300

    more accudate status check

 opensshd.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/opensshd.init b/opensshd.init
index 3b963d7..d9a805e 100755
--- a/opensshd.init
+++ b/opensshd.init
@@ -51,7 +51,7 @@ ssh_gen_keys() {
 
 start() {
        # Check if the service is already running?
-       if status >/dev/null; then
+       if status --pidfile $PIDFILE sshd >/dev/null; then
                msg_already_running "OpenSSH"
                return
        fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssh.git/commitdiff/c2560889698c1ed0b1ad9620e848e124ca6df8e2

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to