[prev in list] [next in list] [prev in thread] [next in thread] 

List:       privoxy-users
Subject:    Re: [privoxy-users] privoxy 3.0.6 -chkroot -SUSE 9.2-
From:       Fabian Keil <fk () fabiankeil ! de>
Date:       2007-05-31 18:24:37
Message-ID: 20070531202437.20cb8784 () localhost
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


CC'ing ijbswa-users@ again as other SuSE users
might run into similar problems.

Karin_privat <careen@ihug.co.nz> wrote:

> danke nochmals für die schnelle Antwort.
> ..und die Zeit, die Du Dir genommen hast.
> Daaaaaaaaaaanke.

You're welcome.

> Das mit dem Script habe ich herausbekommen:
> 
> Privoxy wurde VOR dem network script gestartet.
> So konnte es das Interface nicht finden.
> (Im logfile: Can´t assign requested address)
> 
> SUSE benutzt das tool bzw. das Kommando insserv.
> Dies legt die Startreihenfolge der Scripte (leider)automatisch fest.
> 
> insserv kann jedoch auch header im Script auswerten und die 
> Startreihenfolge ändern.
> In Eurem Script habe ich den Header, wie folgt eingetragen:
> 
> ### 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.
> 
> Das hat funktioniert.

I'm glad to hear that.

> chroot
> 
> Bin nicht ganz mit dem kommando klar gekommen...und wie
> chroot in privoxy nun wirklich läuft und was es bewirkt.
> Habe ich da was in der Doku nicht mitbekommen!?
> 
> Wäre 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".
 
> Ich dachte, ich kann das im Script festlegen, wie der privoxy laufen
> soll.
> Es soll unter user/gruppe : privoxy/privoxy laufen 
> und als chroot-jail.
>
> Also dachte ich wenn man im Script nach$P-USER_SETTINGS
> -chroot setze dann würde 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äuft nicht und ich bin nicht gut
> im `Scripten´ 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

["signature.asc" (application/pgp-signature)]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Ijbswa-users mailing list
Ijbswa-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ijbswa-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic