From: root Date: Mon, 8 Aug 2016 15:00:26 +0000 (+0200) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=c13ea91400cd1d3ade0e5c266f382e3ddbb4bf6c;p=config%2Fuhu1%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/init.d/stunnel b/init.d/stunnel index 6ca77a3..e7eee32 100755 --- a/init.d/stunnel +++ b/init.d/stunnel @@ -1,8 +1,9 @@ -#!/sbin/runscript +#!/sbin/openrc-run # Copyright 1999-2014 Gentoo Foundation # 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 @@ stop() { 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 $? +}