summaryrefslogtreecommitdiff
path: root/opensshd.init.in
diff options
context:
space:
mode:
Diffstat (limited to 'opensshd.init.in')
-rwxr-xr-xopensshd.init.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/opensshd.init.in b/opensshd.init.in
index c36c5c88..d0aff779 100755
--- a/opensshd.init.in
+++ b/opensshd.init.in
@@ -14,6 +14,8 @@ piddir=@piddir@
SSHD=$prefix/sbin/sshd
PIDFILE=$piddir/sshd.pid
+PidFile=`grep "^PidFile" ${sysconfdir}/sshd_config | tr "=" " " | awk '{print $2}'`
+[ X$PidFile = X ] || PIDFILE=$PidFile
SSH_KEYGEN=$prefix/bin/ssh-keygen
HOST_KEY_RSA1=$sysconfdir/ssh_host_key
HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key