]> andersk Git - openssh.git/blobdiff - opensshd.init.in
- dtucker@cvs.openbsd.org 2010/01/09 11:17:56
[openssh.git] / opensshd.init.in
index ffa7cdac21ff970d3545d860e37ad658382df29d..d0aff7794873d6460ee134df33932105cf20c9b0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/sbin/sh
+#!@STARTUP_SCRIPT_SHELL@
 # Donated code that was put under PD license.
 #
 # Stripped PRNGd out of it for the time being.
@@ -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.95755 seconds and 4 git commands to generate.