axhttpd.init 426 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. #FWINIT 80
  3. . /etc/rc.conf
  4. case $1 in
  5. autostop) ;;
  6. autostart)
  7. test x"${axhttpd:-NO}" = x"NO" && exit 0
  8. exec sh $0 start
  9. ;;
  10. start)
  11. if [ ! -d /www -a ! -h /www ]; then
  12. echo "axhttpd not started. create /www first"
  13. exit 0
  14. fi
  15. /usr/sbin/axhttpd >>/var/log/axhttpd.access
  16. ;;
  17. stop)
  18. killall axhttpd
  19. ;;
  20. restart)
  21. sh $0 stop
  22. sh $0 start
  23. ;;
  24. *)
  25. echo "Usage: $0 {start | stop | restart}"
  26. exit 1
  27. ;;
  28. esac
  29. exit $?