source:
freewrt/package/tinyproxy/files/tinyproxy.init@
621d5d2
| Last change on this file since 621d5d2 was 65d016f, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 283 bytes | |
| Line | |
|---|---|
| 1 | #! /bin/sh |
| 2 | |
| 3 | . /etc/rc.conf |
| 4 | |
| 5 | case "$1" in |
| 6 | autostart) |
| 7 | test x"${tinyproxy:-NO}" = x"NO" && exit 0 |
| 8 | exec $0 start |
| 9 | ;; |
| 10 | start) |
| 11 | tinyproxy |
| 12 | ;; |
| 13 | stop) |
| 14 | killall tinyproxy |
| 15 | ;; |
| 16 | restart) |
| 17 | $0 stop |
| 18 | $0 start |
| 19 | ;; |
| 20 | |
| 21 | *) |
| 22 | echo "usage: $0 {start | stop | restart}" |
| 23 | exit 1 |
| 24 | esac |
| 25 | exit $? |
Note:
See TracBrowser
for help on using the repository browser.
