From: SourceForge.net <no...@so...> - 2010-04-15 23:43:17
|
Feature Requests item #2962037, was opened at 2010-03-02 11:37 Message generated for change (Comment added) made by orbisvicis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=361118&aid=2962037&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unix integration Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: orbisvicis (orbisvicis) Assigned to: Fabian Keil (fabiankeil) Summary: [script] allow privoxy to work after resuming from sleep Initial Comment: $ cat /etc/pm/sleep.d/99.privoxy #!/bin/bash # Hooks to run privoxy after resume/thaw . "${PM_FUNCTIONS}" suspend_privoxy() { /etc/rc.d/privoxy stop } resume_privoxy() { /etc/rc.d/privoxy start } case $1 in hibernate|suspend) suspend_privoxy ;; thaw|resume) resume_privoxy ;; *) exit $NA ;; esac Since this script is rather distribution-oriented, I might suggest creating a folder in the root of the release for distro-specific data and placing this script there. ./distro/archlinux/99.privoxy or ./distro/archlinux/etc/pm/sleep.d/99.privoxy On the other hand, if anything can be done to make privoxy work after a thaw or resume, that would be much preferable. ---------------------------------------------------------------------- >Comment By: orbisvicis (orbisvicis) Date: 2010-04-15 19:43 Message: Attached are the straces, two files: privoxy.strace.no-s2ram.0 privoxy.strace.after-s2ram.0 and, if interesting: $ ps aux | grep -i privoxy privoxy 12450 0.0 0.0 183512 1908 ? Ssl 19:40 0:00 /usr/sbin/privoxy --user privoxy privoxy --pidfile /var/run/privoxy.pid /etc/privoxy/config ---------------------------------------------------------------------- Comment By: orbisvicis (orbisvicis) Date: 2010-04-15 17:00 Message: I somehow missed the email from sourceforge. I should have both traces by this weekend. If you'd like to duplicate, this is how I configured sleep on archlinux [wiki @ http://wiki.archlinux.org/index.php/Pm-utils] 1] Configure the sleep backend to uswsusp $ cat /etc/pm/config.d/module SLEEP_MODULE="uswsusp" 2] Review the suspend hooks in "/etc/pm/sleep.d" "/usr/lib/pm-utils/sleep.d/" 2*] Perhaps also review any files provided by the pm-utils package 3] Call suspend2ram by "dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0" 4] Which in turns calls as root "/usr/sbin/pm-suspend" This is suspend to RAM aka "pm-suspend". I've never used or configured suspend to disk aka "pm-hibernate". ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2010-04-05 09:05 Message: My attempts to reproduce this with Linux Mint failed so far. Privoxy seems to work fine after resuming from suspend to RAM and the system itself doesn't properly wake up from suspend to disk so I can't test this. Can you provide the output of strace -f -p `pgrep privoxy` showing a properly handled request before suspending and a failed one after resuming? ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2010-04-04 03:53 Message: Reopen as this hasn't been properly analyzed yet. We also got a similar report in: https://sourceforge.net/tracker/?func=detail&atid=211118&aid=2981542&group_id=11118 ---------------------------------------------------------------------- Comment By: SourceForge Robot (sf-robot) Date: 2010-04-03 22:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: orbisvicis (orbisvicis) Date: 2010-03-21 16:41 Message: The problem: I use the uswsusp sleep module. If the laptop sleeps long enough, on resume I need to restart privoxy to get internet access, otherwise privoxy reports -> "The host could not be resolved" etc. This is only for privoxy: other tools such as "ping", or browsers not using proxies, have no problem accessing the network. I'm not sure why there is a time factor: possibly dhcp lease timeout or some other network quirk. I know "overnight" is long enough. ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2010-03-20 07:52 Message: Thanks for the script but as you already mentioned it's distribution-specific so my suggestion would be that you send it to the maintainer of the Archlinux Privoxy package. As far as I know nobody around here is using Archlinux so we can't really test or maintain it. Could you describe the resume trouble you're having in more detail? I'm not aware of any problems but I also don't use resume myself. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=361118&aid=2962037&group_id=11118 |