freeswitch.sh 554 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. #
  3. # freeswitch.sh - startup script for freeswitch on FreeBSD
  4. #
  5. # This goes in /usr/local/etc/rc.d and gets run at boot-time.
  6. case "$1" in
  7. start)
  8. if [ -x /usr/local/freeswitch/bin/freeswitch ] ; then
  9. echo -n " freeswitch"
  10. /usr/local/freeswitch/bin/freeswitch -nc &
  11. fi
  12. ;;
  13. stop)
  14. if [ -x /usr/local/freeswitch/bin/freeswitch ] ; then
  15. echo -n " freeswitch"
  16. /usr/local/freeswitch/bin/freeswitch -stop &
  17. fi
  18. ;;
  19. *)
  20. echo "usage: $0 { start | stop }" >&2
  21. exit 1
  22. ;;
  23. esac