summaryrefslogtreecommitdiff
path: root/contrib/solaris
diff options
context:
space:
mode:
authortim <tim>2002-07-16 21:24:38 +0000
committertim <tim>2002-07-16 21:24:38 +0000
commitcf2cbe39194f874b08f55b0f75a5cc49ecfa23a5 (patch)
tree36c8b14d7e8e6d0669b36106d10225bc34290c65 /contrib/solaris
parentcff4527b2b40273cfe8f95d50ce786c6eea2d1f3 (diff)
downloadopenssh-cf2cbe39194f874b08f55b0f75a5cc49ecfa23a5.tar.gz
[contrib/solaris/opensshd.in] Only kill sshd if .pid file found
Diffstat (limited to 'contrib/solaris')
-rwxr-xr-xcontrib/solaris/opensshd.in12
1 files changed, 1 insertions, 11 deletions
diff --git a/contrib/solaris/opensshd.in b/contrib/solaris/opensshd.in
index 212254dc..e7ca2489 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
}