Changeset 29253


Ignore:
Timestamp:
2011-11-19T00:14:10+01:00 (6 years ago)
Author:
nico
Message:

packages/lighttpd: use new service functions (closes: #10246)

Location:
packages/net/lighttpd
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/lighttpd/Makefile

    r28146 r29253  
    1010PKG_NAME:=lighttpd 
    1111PKG_VERSION:=1.4.29 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    253253define Package/lighttpd/conffiles 
    254254/etc/lighttpd/lighttpd.conf 
    255 /etc/default/lighttpd 
    256255endef 
    257256 
     
    259258        $(INSTALL_DIR) $(1)/etc/lighttpd 
    260259        $(INSTALL_DATA) ./files/lighttpd.conf $(1)/etc/lighttpd/ 
    261         $(INSTALL_DIR) $(1)/etc/default 
    262         $(INSTALL_DATA) ./files/lighttpd.default $(1)/etc/default/lighttpd 
    263260        $(INSTALL_DIR) $(1)/etc/init.d 
    264261        $(INSTALL_BIN) ./files/lighttpd.init $(1)/etc/init.d/lighttpd 
  • packages/net/lighttpd/files/lighttpd.init

    r15247 r29253  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
     4SERVICE_USE_PID=1 
     5 
    36START=50 
    47 
    5 BIN=lighttpd 
    6 DEFAULT=/etc/default/$BIN 
    7 LOG_D=/var/log/$BIN 
    8 RUN_D=/var/run 
    9 PID_F=$RUN_D/$BIN.pid 
    10  
    118start() { 
    12         [ -f $DEFAULT ] && . $DEFAULT 
    13         mkdir -p $LOG_D 
    14         mkdir -p $RUN_D 
    15         $BIN $OPTIONS 
     9        mkdir -m 0755 -p /var/log/lighttpd 
     10        service_start /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf 
    1611} 
    1712 
    1813stop() { 
    19         [ -f $PID_F ] && kill $(cat $PID_F) 
     14        service_stop /usr/sbin/lighttpd 
    2015} 
    2116 
Note: See TracChangeset for help on using the changeset viewer.