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