PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : rcprivoxy start failed - direkter Aufruf funzt aber



surfmode
20.03.07, 12:21
Howdy Com,

habe gestern auf meiner Suse10.2 via Yast Privoxy installiert um das Tor-Netzwerk nutzen zu können.
Dummerweise läßt sich Privoxy aber weder per rc.d noch per Yast starten, sondern nur per direkten Aufruf aus der Bash!?



tb303:~ # rpm -q privoxy
privoxy-3.0.5-20

tb303:~ # rcprivoxy start
Starting Privoxy failed

tb303:~ # privoxy
Mar 20 13:01:56 Privoxy(b7d4b6c0) Info: loading configuration file '/etc/config':
tb303:~ # pidof privoxy
5692

Wenn ich versuche, Privoxy aus dem Yast-Runleveleditor zu starten heißt es:
"/etc/init.d/privoxy start gab 1 (Fehler nicht spezifiziert) zurück: Starting Privoxy"

Leider finde ich in keinem Log Infos dazu, was hier genau schief läuft.

Wie krieg ich Privoxy automatisch gestartet?

Hier noch /rc.d/privoxy:



#! /bin/sh
### BEGIN INIT INFO
# Provides: privoxy
# Required-Start: $network $syslog $remote_fs
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Starts Privoxy
### END INIT INFO

. /etc/rc.status
rc_reset

case "$1" in
start)
echo -n "Starting Privoxy"
if [ ! -f /var/run/privoxy.pid ] || ! kill -0 `cat /var/run/privoxy.pid` 2> /dev/null; then
# set up chroot dir
for i in /etc/{resolv.conf,host.conf,hosts,localtime}; do
cp -p $i /var/lib/privoxy/etc/ &>/dev/null \
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
done
libdir=/$(basename $(echo /var/lib/privoxy/lib*))
for i in /$libdir/{libresolv.so.2,libnss_dns{,6}.so.2}; do
if [ -s $i ]; then
cp -p $i /var/lib/privoxy/$libdir/ \
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
fi
done
/usr/sbin/privoxy --user privoxy.privoxy --pidfile /var/run/privoxy.pid --chroot /etc/config 2> /dev/null
else
false
fi
rc_status -v
;;
stop)
echo -n "Shutting down Privoxy"
killproc -TERM /usr/sbin/privoxy && rm -f /var/run/privoxy.pid

# remove libraries from the chroot jail, just so they are not left over
# if the server is deinstalled
rm -f /var/lib/privoxy/lib*/*

rc_status -v
;;
reload)
echo -n "Reloading Privoxy"
kill -HUP `cat /var/run/privoxy.pid`
rc_status -v
;;
try-restart)
$0 status >/dev/null && $0 restart
rc_status
;;
restart)
$0 stop
$0 start
rc_status
;;
status)
echo -n "Checking for Privoxy"
checkproc /usr/sbin/privoxy
rc_status -v
;;
*)
echo "Usage: $0 {start|restart|reload|status|stop}"
exit 1
esac

rc_exit


Thx in advance!

surfmode
20.03.07, 13:05
Nach weiterer Überlegung scheint es mir was mit Rechten zu tun zu haben.
Ich starte Privoxy ja direkt als root, wohingegen rcprivoxy den User privoxy nutzt.
Aber wie ich da jetzt weiterkomme... *kopfkratz

surfmode
25.03.07, 00:22
Scheinbar war einfach nur privoxy-3.0.5-20.rpm aus dem Suse 10.2 Tree buggy.

Ich habe jetzt diesen Privoxy wieder via Yast deinstalliert und mir die privoxy3.0.6.src
gezogen, selbst kompiliert und alles läuft wunderbar.