diff options
author | 2007-09-20 07:38:06 +0000 | |
---|---|---|
committer | 2007-09-20 07:38:06 +0000 | |
commit | 0bf06f163e95ab150f2fcb34376fd93c5e573b8a (patch) | |
tree | 1887cba43baad2b0a27ae1b7aabbadce0488cfde /net-misc/openssh/files | |
parent | stable x86, security bug 192818 (diff) | |
download | historical-0bf06f163e95ab150f2fcb34376fd93c5e573b8a.tar.gz historical-0bf06f163e95ab150f2fcb34376fd93c5e573b8a.tar.bz2 historical-0bf06f163e95ab150f2fcb34376fd93c5e573b8a.zip |
If restarting, check the config first #192825 by Hans-Werner Hilse.
Package-Manager: portage-2.1.3.9
Diffstat (limited to 'net-misc/openssh/files')
-rw-r--r-- | net-misc/openssh/files/sshd.rc6 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net-misc/openssh/files/sshd.rc6 b/net-misc/openssh/files/sshd.rc6 index 258c3a3f1baf..2a5d4ae259a4 100644 --- a/net-misc/openssh/files/sshd.rc6 +++ b/net-misc/openssh/files/sshd.rc6 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6,v 1.22 2007/02/23 10:51:48 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6,v 1.23 2007/09/20 07:38:06 vapier Exp $ opts="reload" @@ -62,6 +62,10 @@ start() { } stop() { + if [ "${RC_CMD}" = "restart" ] ; then + checkconfig || return 1 + fi + ebegin "Stopping ${SVCNAME}" start-stop-daemon --stop --exec "${SSHD_BINARY}" \ --pidfile "${SSHD_PIDFILE}" --quiet |