diff options
author | Tim Rice <tim@multitalents.net> | 2009-11-20 19:32:15 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2009-11-20 19:32:15 -0800 |
commit | 53e9974007661fe4026a9512ae1a7e1ea43face8 (patch) | |
tree | 7445089fddbcd2cee01317d70f5694f9490ba98e /opensshd.init.in | |
parent | 409661f0d99bf9bc82543eb7bab1f502c9170281 (diff) | |
download | openssh-git-53e9974007661fe4026a9512ae1a7e1ea43face8.tar.gz |
- (tim) [opensshd.init.in] If PidFile is set in sshd_config, use it.
Bug 1628. OK dtucker@
Diffstat (limited to 'opensshd.init.in')
-rwxr-xr-x | opensshd.init.in | 2 |
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 |