From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/stunnel/files/init | 34 ++++++++++++++++++++++++++++++++++ recipes/stunnel/files/stunnel.conf | 6 ++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes/stunnel/files/init create mode 100644 recipes/stunnel/files/stunnel.conf (limited to 'recipes/stunnel/files') diff --git a/recipes/stunnel/files/init b/recipes/stunnel/files/init new file mode 100644 index 0000000000..8f0a0139b5 --- /dev/null +++ b/recipes/stunnel/files/init @@ -0,0 +1,34 @@ +#!/bin/sh +DAEMON=/usr/sbin/stunnel +NAME=stunnel +DESC="SSH Tunneling" +ARGS="" + +test -f $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "* starting $DESC: $NAME... " + start-stop-daemon -S -x $DAEMON -- $ARGS + echo "done." + ;; + stop) + echo -n "* stopping $DESC: $NAME... " + start-stop-daemon -K -x $DAEMON + echo "done." + ;; + restart) + echo "* restarting $DESC: $NAME... " + $0 stop + $0 start + echo "done." + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/recipes/stunnel/files/stunnel.conf b/recipes/stunnel/files/stunnel.conf new file mode 100644 index 0000000000..0deb1a0f46 --- /dev/null +++ b/recipes/stunnel/files/stunnel.conf @@ -0,0 +1,6 @@ +key=/etc/certs/mtx.key +cert=/etc/certs/mtx.crt + +[https] +accept=443 +connect=80 -- cgit 1.2.3-korg