From: Fabian K. <fk...@fa...> - 2007-05-31 18:24:46
|
CC'ing ijbswa-users@ again as other SuSE users might run into similar problems. Karin_privat <ca...@ih...> wrote: > danke nochmals f=FCr die schnelle Antwort. > ..und die Zeit, die Du Dir genommen hast. > Daaaaaaaaaaanke. You're welcome. > Das mit dem Script habe ich herausbekommen: >=20 > Privoxy wurde VOR dem network script gestartet. > So konnte es das Interface nicht finden. > (Im logfile: Can=B4t assign requested address) >=20 > SUSE benutzt das tool bzw. das Kommando insserv. > Dies legt die Startreihenfolge der Scripte (leider)automatisch fest. >=20 > insserv kann jedoch auch header im Script auswerten und die=20 > Startreihenfolge =E4ndern. > In Eurem Script habe ich den Header, wie folgt eingetragen: >=20 > ### 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 These are already present in privoxy.init.suse (with slightly different spelling), are you using another script? > Der Eintrag unter required Start legt fest, welche Scripte(Dienste) nun > vor dem privoxy Script geladen werden. >=20 > Das hat funktioniert. I'm glad to hear that. > chroot >=20 > Bin nicht ganz mit dem kommando klar gekommen...und wie > chroot in privoxy nun wirklich l=E4uft und was es bewirkt. > Habe ich da was in der Doku nicht mitbekommen!? >=20 > W=E4re dies das Kommando? > privoxy --user privoxy --chroot This should theoretically work if the privoxy user's home directory is set to the chroot directory, and there's a valid configuration file in the current working directory. However due to the already mentioned command line parsing bug in Privoxy 3.0.5 beta and 3.0.6 you'll also have to provide the configuration file's location on the command line, otherwise Privoxy would try to read the file "--chroot". =20 > Ich dachte, ich kann das im Script festlegen, wie der privoxy laufen > soll. > Es soll unter user/gruppe : privoxy/privoxy laufen=20 > und als chroot-jail. > > Also dachte ich wenn man im Script nach$P-USER_SETTINGS > -chroot setze dann w=FCrde dies in einem chroot-jail laufen. If you are talking about the line: $P_DAEMON --pidfile $P_PIDFILE $P_USER_SETTINGS $P_CONF_FILE 2>/dev/null in privoxy-generic.init, and make sure the script is started by root and that the privoxy user's home directory is set to the chroot directory, that should work. > Das alte SUSE Script l=E4uft nicht und ich bin nicht gut > im `Scripten=B4 im Moment. Do you remember the error message? If there isn't any, you could try removing all redirections to /dev/null and additionally start the script with sh -x (as root). Fabian |