source: packages/net/privoxy/files/privoxy.init @ 7164

Last change on this file since 7164 was 7164, checked in by mbm, 10 years ago

START/STOP values must be specified in the init script

  • Property svn:eol-style set to native
File size: 256 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3START=50
4
5CFG_F=/etc/privoxy/config
6RUN_D=/var/run
7PID_F=$RUN_D/privoxy.pid
8
9start() {
10        mkdir -p $RUN_D
11        /usr/sbin/privoxy --pidfile $PID_F $CFG_F
12}
13
14stop() {
15        [ -f $PID_F ] && kill $(cat $PID_F)
16}
Note: See TracBrowser for help on using the repository browser.