/[gentoo-x86]/net-misc/stunnel/files/stunnel.rc6
Gentoo

Contents of /net-misc/stunnel/files/stunnel.rc6

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Dec 8 10:38:26 2007 UTC (6 years, 7 months ago) by ulm
Branch: MAIN
Changes since 1.7: +17 -17 lines
Version bump, bug #197881.
(Portage version: 2.1.4_rc8)

1 #!/sbin/runscript
2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 # Default pidfile location
6 PIDFILE="/var/run/stunnel/stunnel.pid"
7
8 checkconfig() {
9 # To ensure backwards compatibility
10 if grep -q /etc/stunnel/stunnel.pid /etc/stunnel/stunnel.conf; then
11 ewarn "Please update your stunnel.conf!"
12 ewarn "pid should point to /var/run/stunnel/stunnel.pid"
13 PIDFILE="/etc/stunnel/stunnel.pid"
14 fi
15 }
16
17 depend() {
18 need net
19 }
20
21 start() {
22 checkconfig
23 ebegin "Starting stunnel"
24 start-stop-daemon --start --quiet --pidfile "${PIDFILE}" \
25 --exec /usr/bin/stunnel -- /etc/stunnel/stunnel.conf
26 eend $?
27 }
28
29 stop() {
30 checkconfig
31 ebegin "Stopping stunnel"
32 start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
33 eend $?
34 }

  ViewVC Help
Powered by ViewVC 1.1.20