You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
467 B

  1. #!/bin/sh /etc/rc.common
  2. # Startup script
  3. # Copyright (C) 2015 OpenWrt.org
  4. USE_PROCD=1
  5. START=90
  6. STOP=15
  7. start_service() {
  8. user_exists icecast 87 || user_add icecast 87
  9. group_exists icecast 87 || group_add icecast 87
  10. [ -d /var/log/icecast ] || {
  11. mkdir -m 0755 -p /var/log/icecast
  12. chown icecast:icecast /var/log/icecast
  13. }
  14. procd_open_instance
  15. procd_set_param command /usr/bin/icecast -c /etc/icecast.xml
  16. procd_set_param respawn
  17. procd_close_instance
  18. }