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.

30 lines
565 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2009-2010 OpenWrt.org
  3. START=99
  4. STOP=80
  5. SERVICE_USE_PID=1
  6. CRTMPSERVER_BIN="/usr/bin/crtmpserver"
  7. CRTMPSERVER_CONFIG="/etc/crtmpserver.lua"
  8. CRTMPSERVER_PID="/var/run/crtmpserver.pid"
  9. start()
  10. {
  11. echo "start $CRTMPSERVER_BIN"
  12. start-stop-daemon -S -x "$CRTMPSERVER_BIN" -- --daemon --pid="$CRTMPSERVER_PID" \
  13. "$CRTMPSERVER_CONFIG"
  14. }
  15. stop() {
  16. echo "stop $CRTMPSERVER_BIN"
  17. start-stop-daemon -K -x $CRTMPSERVER_BIN -p $CRTMPSERVER_PID
  18. }
  19. reload()
  20. {
  21. stop
  22. start
  23. }