Changeset 29151


Ignore:
Timestamp:
2011-11-15T04:40:56+01:00 (6 years ago)
Author:
nico
Message:

packages/privoxy: use new service functions

Signed-off-by: Peter Wagner <tripolar@…>

Location:
packages/net/privoxy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/privoxy/Makefile

    r28779 r29151  
    1010PKG_NAME:=privoxy 
    1111PKG_VERSION:=3.0.17 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz 
  • packages/net/privoxy/files/privoxy.init

    r7164 r29151  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
     5STOP=50 
    46 
    5 CFG_F=/etc/privoxy/config 
    6 RUN_D=/var/run 
    7 PID_F=$RUN_D/privoxy.pid 
     7SERVICE_USE_PID=1 
    88 
    99start() { 
    10         mkdir -p $RUN_D 
    11         /usr/sbin/privoxy --pidfile $PID_F $CFG_F 
     10        service_start /usr/sbin/privoxy --pidfile /var/run/privoxy.pid \ 
     11                                        /etc/privoxy/config 
    1212} 
    1313 
    1414stop() { 
    15         [ -f $PID_F ] && kill $(cat $PID_F) 
     15        service_stop /usr/sbin/privoxy 
    1616} 
Note: See TracChangeset for help on using the changeset viewer.