summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-28 00:09:52 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-28 00:09:52 +0000
commit0ab2ed7f6601999ded912441146ca051fbd87c92 (patch)
treeec01be127ab18eaebae9dcae4e062d5cb4f981da /net-misc
parentintial import from gentoo.de overlay cvs (diff)
downloadgentoo-2-0ab2ed7f6601999ded912441146ca051fbd87c92.tar.gz
gentoo-2-0ab2ed7f6601999ded912441146ca051fbd87c92.tar.bz2
gentoo-2-0ab2ed7f6601999ded912441146ca051fbd87c92.zip
Add restart function by Michal Fojtik to init.d script #124271.
(Portage version: 2.1_pre5-r1)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/openssh/ChangeLog5
-rw-r--r--net-misc/openssh/files/sshd.rc613
2 files changed, 15 insertions, 3 deletions
diff --git a/net-misc/openssh/ChangeLog b/net-misc/openssh/ChangeLog
index 0d0e26a82d20..0787921c04cf 100644
--- a/net-misc/openssh/ChangeLog
+++ b/net-misc/openssh/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/openssh
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.155 2006/02/19 18:22:20 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.156 2006/02/28 00:09:52 vapier Exp $
+
+ 28 Feb 2006; Mike Frysinger <vapier@gentoo.org> files/sshd.rc6:
+ Add restart function by Michal Fojtik to init.d script #124271.
19 Feb 2006; Joshua Kinard <kumba@gentoo.org> openssh-4.2_p1-r1.ebuild:
Marked stable on mips.
diff --git a/net-misc/openssh/files/sshd.rc6 b/net-misc/openssh/files/sshd.rc6
index 58f5bed5283f..139f9cb8364e 100644
--- a/net-misc/openssh/files/sshd.rc6
+++ b/net-misc/openssh/files/sshd.rc6
@@ -1,7 +1,9 @@
#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
+# 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.18 2006/02/04 17:49:30 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6,v 1.19 2006/02/28 00:09:52 vapier Exp $
+
+opts="reload"
depend() {
use logger dns
@@ -58,3 +60,10 @@ stop() {
start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
eend $?
}
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid \
+ --signal HUP
+ eend $?
+}