Index: /etc/init.d/stunnel =================================================================== --- /etc/init.d/stunnel (revision 639) +++ /etc/init.d/stunnel (working copy) @@ -3,6 +3,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +extra_started_commands="reload" SERVICENAME=${SVCNAME#*.} SERVICENAME=${SERVICENAME:-stunnel} STUNNEL_CONFIGFILE=${STUNNEL_CONFIGFILE:-/etc/stunnel/${SERVICENAME}.conf} @@ -41,3 +42,10 @@ start-stop-daemon --stop --quiet --pidfile ${PIDFILE} eend $? "Failed to stop ${SVCNAME}" } + +reload() { + get_config || return 1 + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile ${PIDFILE} --name stunnel + eend $? +}