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.

20 lines
357 B

  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. }