Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 124271

Summary: ssh reloading from init scripts
Product: Gentoo Linux Reporter: Michal Fojtik <mifo>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michal Fojtik 2006-02-27 08:09:28 UTC
I want to submit reload action for sshd (real reload not restart).

Can you pls add this to /etc/init.d/sshd code:

# add this at start to allow "reload" parameter
opts="${opts} reload"
 
# this does the reload
reload() {
	ebegin "Reloading ${SVCNAME}"
	start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/${SVCNAME}.pid
	eend $?
}
Comment 1 SpanKY gentoo-dev 2006-02-27 16:09:35 UTC
thanks, added to cvs