]>
Commit | Line | Data |
---|---|---|
d2d7a46b MT |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/stunnel | |
4 | # | |
5 | # Description : Provides an SSL encryption wrapper. | |
6 | # | |
7 | ######################################################################## | |
8 | ||
9 | . /etc/sysconfig/rc | |
10 | . ${rc_functions} | |
11 | ||
12 | case "$1" in | |
13 | start) | |
14 | boot_mesg "Starting the Stunnel Daemon..." | |
15 | loadproc /usr/bin/stunnel | |
16 | ;; | |
17 | ||
18 | stop) | |
19 | boot_mesg "Stopping the Stunnel Daemon..." | |
20 | killproc /usr/bin/stunnel | |
21 | ;; | |
22 | ||
23 | restart) | |
24 | $0 stop | |
25 | sleep 1 | |
26 | $0 start | |
27 | ;; | |
28 | ||
29 | status) | |
30 | statusproc /usr/bin/stunnel | |
31 | ;; | |
32 | ||
33 | *) | |
34 | echo "Usage: $0 {start|stop|restart|status}" | |
35 | exit 1 | |
36 | ;; | |
37 | esac | |
38 | ||
39 | # End $rc_base/init.d/stunnel |