|
Lines 6-19
Link Here
|
| 6 |
start() { |
6 |
start() { |
| 7 |
ebegin "Starting ${SVCNAME}" |
7 |
ebegin "Starting ${SVCNAME}" |
| 8 |
start-stop-daemon --start \ |
8 |
start-stop-daemon --start \ |
|
|
9 |
--pidfile /var/run/${SVCNAME}.pid\ |
| 9 |
--exec /usr/bin/sslh -- ${OPTIONS} \ |
10 |
--exec /usr/bin/sslh -- ${OPTIONS} \ |
| 10 |
--pidfile /var/run/sslh.pid |
11 |
--pidfile /var/run/${SVCNAME}.pid |
| 11 |
eend $? |
12 |
eend $? |
| 12 |
} |
13 |
} |
| 13 |
|
14 |
|
| 14 |
stop() { |
15 |
stop() { |
| 15 |
ebegin "Stopping ${SVCNAME}" |
16 |
ebegin "Stopping ${SVCNAME}" |
| 16 |
start-stop-daemon --stop --quiet --retry 20 \ |
17 |
start-stop-daemon --stop --quiet --retry 20 \ |
| 17 |
--pidfile /var/run/sslh.pid |
18 |
--pidfile /var/run/${SVCNAME}.pid |
| 18 |
eend $? |
19 |
eend $? |
| 19 |
} |
20 |
} |