]> andersk Git - openssh.git/commitdiff
- (tim) [opensshd.init.in] If PidFile is set in sshd_config, use it.
authortim <tim>
Sat, 21 Nov 2009 03:32:15 +0000 (03:32 +0000)
committertim <tim>
Sat, 21 Nov 2009 03:32:15 +0000 (03:32 +0000)
   Bug 1628. OK dtucker@

ChangeLog
opensshd.init.in

index e477a8fc3da655305097ddbe125251acf582a004..41c272ec9521c316adc8c23d6d4ff04f27f5d03d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20091121
+ - (tim) [opensshd.init.in] If PidFile is set in sshd_config, use it.
+   Bug 1628. OK dtucker@
+
 20091120
  - (djm) [ssh-rand-helper.c] Print error and usage() when passed command-
    line arguments as none are supported. Exit when passed unrecognised
index c36c5c88aed599e851279642138583fbee616095..d0aff7794873d6460ee134df33932105cf20c9b0 100755 (executable)
@@ -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
This page took 0.072221 seconds and 5 git commands to generate.