]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@uhu1.uhu-banane.de>
Mon, 8 Aug 2016 15:00:26 +0000 (17:00 +0200)
committerroot <root@uhu1.uhu-banane.de>
Mon, 8 Aug 2016 15:00:26 +0000 (17:00 +0200)
init.d/stunnel

index 6ca77a3dbdbe04f1149ca28ca84b2eb10e189d70..e7eee32c2f153897ce8d31bf8c0c5df972a40031 100755 (executable)
@@ -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 $?
+}