diff options
author | Tim Rice <tim@multitalents.net> | 2002-07-16 23:24:38 +0200 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2002-07-16 23:24:38 +0200 |
commit | ffaf4453712ac7b47b0157ba2c7201e77a54c369 (patch) | |
tree | bbfcbadb8ebbb6f54210b22a6342701da1848b09 /contrib | |
parent | - (bal) Privsep user creation support in Solaris buildpkg.sh by (diff) | |
download | openssh-ffaf4453712ac7b47b0157ba2c7201e77a54c369.tar.xz openssh-ffaf4453712ac7b47b0157ba2c7201e77a54c369.zip |
[contrib/solaris/opensshd.in] Only kill sshd if .pid file found
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/solaris/opensshd.in | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/contrib/solaris/opensshd.in b/contrib/solaris/opensshd.in index 212254dc8..e7ca2489f 100755 --- a/contrib/solaris/opensshd.in +++ b/contrib/solaris/opensshd.in @@ -3,11 +3,8 @@ # # Stripped PRNGd out of it for the time being. -AWK=/usr/bin/awk CAT=/usr/bin/cat KILL=/usr/bin/kill -PS=/usr/bin/ps -XARGS=/usr/bin/xargs prefix=%%openSSHDir%% etcdir=%%configDir%% @@ -20,12 +17,6 @@ HOST_KEY_RSA1=$etcdir/ssh_host_key HOST_KEY_DSA=$etcdir/ssh_host_dsa_key HOST_KEY_RSA=$etcdir/ssh_host_rsa_key -killproc() { - _procname=$1 - _signal=$2 - ${PS} -u root | ${AWK} '/'"$_procname"'$/ {print $1}' | ${XARGS} ${KILL} -} - checkkeys() { if [ ! -f $HOST_KEY_RSA1 ]; then @@ -46,8 +37,7 @@ stop_service() { if [ ${PID:=0} -gt 1 -a ! "X$PID" = "X " ]; then ${KILL} ${PID} else - echo "Unable to read PID file, killing using alternate method" - killproc sshd TERM + echo "Unable to read PID file" fi } |