]> git.pld-linux.org Git - packages/openssh.git/commitdiff
more accudate status check
authorElan Ruusamäe <glen@delfi.ee>
Tue, 7 Apr 2015 10:23:36 +0000 (13:23 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 7 Apr 2015 10:23:36 +0000 (13:23 +0300)
opensshd.init

index 3b963d7c3e4f945ee56166bfe39946a80a29901e..d9a805e82107d0695e8693970f2f416d4288f9c7 100755 (executable)
@@ -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
This page took 0.068617 seconds and 4 git commands to generate.