]> andersk Git - openssh.git/commitdiff
[contrib/solaris/opensshd.in] Only kill sshd if .pid file found
authortim <tim>
Tue, 16 Jul 2002 21:24:38 +0000 (21:24 +0000)
committertim <tim>
Tue, 16 Jul 2002 21:24:38 +0000 (21:24 +0000)
ChangeLog
contrib/solaris/opensshd.in

index a8885c6ca194e9350f7d157e805d4e6932c6a4b5..43e0afea3740076767008cea790dd0a2f1996899 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20020716
+ - (tim) [contrib/solaris/opensshd.in] Only kill sshd if .pid file found
+
 20020715
  - (bal) OpenBSD CVS Sync
    - itojun@cvs.openbsd.org 2002/07/12 13:29:09
index 212254dc8bcb96fc8a25205080fc96847b14d110..e7ca2489f4fa34faca5a7fb4acdbdf8f04db8225 100755 (executable)
@@ -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
 }
 
This page took 0.980498 seconds and 5 git commands to generate.