<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — Proposal for Privoxy]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=157&amp;type=atom" />
	<updated>2018-12-27T18:59:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=157</id>
		<entry>
			<title type="html"><![CDATA[Proposal for Privoxy]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=728#p728" />
			<content type="html"><![CDATA[<p>Hello together, while using <strong>Privoxy</strong> on homeserver under <strong>Hyperbola</strong> I&#039;ve tried to debug using the logfile. But within the concurrent init-script the daemon is not functional on that level and therefore no logfile is created. I&#039;ve changed the scripting and perhaps it could be helpful in the future (<em>file is /etc/init.d/privoxy</em>):</p><div class="codebox"><pre><code>#!/usr/bin/openrc-run
# Copyright 2017 Hyperbola Project
# Distributed under the terms of the GNU General Public License v2

description=&quot;Privoxy service&quot;
conffile=/etc/${SVCNAME}/config
pidfile=/run/${SVCNAME}.pid

depend() {
    need net
}

start() {
    if [ ! -f &quot;${conffile}&quot; ]; then
        eerror &quot;Configuration file ${conffile} not found!&quot;
        return 1
    fi

    ebegin &quot;Starting privoxy&quot;
    start-stop-daemon --start --quiet --exec /usr/bin/privoxy \
        --pidfile &quot;${pidfile}&quot; \
        -- \
        --pidfile &quot;${pidfile}&quot; \
        --user privoxy.privoxy &quot;${conffile}&quot;
    eend $?
}

stop() {
    ebegin &quot;Stopping privoxy&quot;
    start-stop-daemon --stop --quiet --pidfile &quot;${pidfile}&quot;
    eend $?
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2018-12-27T18:59:37Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=728#p728</id>
		</entry>
</feed>
