lighttpd.init 357 B

1234567891011121314151617181920
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. SERVICE_USE_PID=1
  4. START=50
  5. start() {
  6. user_exists http || user_add http
  7. [ -d /var/log/lighttpd ] || {
  8. mkdir -m 0775 -p /var/log/lighttpd
  9. chgrp www-data /var/log/lighttpd
  10. }
  11. service_start /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
  12. }
  13. stop() {
  14. service_stop /usr/sbin/lighttpd
  15. }