Fix init script and rebuild.
This commit is contained in:
parent
191940fe55
commit
c9a7103f47
@ -10,7 +10,7 @@
|
|||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=openssh
|
topdir=openssh
|
||||||
version=4.7p1
|
version=4.7p1
|
||||||
pkgver=1
|
pkgver=2
|
||||||
source[0]=$topdir-$version.tar.gz
|
source[0]=$topdir-$version.tar.gz
|
||||||
# If there are no patches, simply comment this
|
# If there are no patches, simply comment this
|
||||||
#patch[0]=
|
#patch[0]=
|
||||||
|
@ -14,7 +14,7 @@ kill_sshd()
|
|||||||
sshd_pid=`cat $pidfile`
|
sshd_pid=`cat $pidfile`
|
||||||
ps -p $sshd_pid | grep sshd > /dev/null
|
ps -p $sshd_pid | grep sshd > /dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
/usr/bin/kill -15 -$sshd_pid
|
/usr/bin/kill -15 $sshd_pid
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user