[packages/openssh] more accudate status check

glen glen at pld-linux.org
Tue Apr 7 12:23:46 CEST 2015


commit c2560889698c1ed0b1ad9620e848e124ca6df8e2
Author: Elan Ruusamäe <glen at 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



More information about the pld-cvs-commit mailing list