]> andersk Git - openssh.git/blobdiff - opensshd.init.in
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / opensshd.init.in
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.120698 seconds and 4 git commands to generate.