Bug 129452 - wwwoffle doesn't work "out of the package" for dial-in connections
Summary: wwwoffle doesn't work "out of the package" for dial-in connections
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Network (show other bugs)
Version: Final
Hardware: i686 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Mads Martin Joergensen
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-19 17:41 UTC by Martin Jost
Modified: 2005-10-21 17:55 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jost 2005-10-19 17:41:58 UTC
While wwwoffle is included as rpm-package it requiered manual action to get it
to work.
The problem is, that wwwoffle doesn't get notified, when the network connection
is build up or teared down. (wwwoffle -online / wwwoffle -offline)

Solution:
I got this solved by putting this as "wwwoffle" in /etc/ppp/ip-up.d
--- snip, snip ---
if [ -x /usr/bin/wwwoffle ]; then
   # Restart to notify of new DNS (is there a better solution ?)
   /etc/rc.d/wwwoffle stop
   /etc/rc.d/wwwoffle start

   # Set the WWWOFFLE HTTP proxy server online.
   /usr/bin/wwwoffle -online -c /etc/wwwoffle/wwwoffle.conf

   # Get the WWWOFFLE HTTP proxy server to fetch requested URLs.
   /usr/bin/wwwoffle -fetch -c /etc/wwwoffle/wwwoffle.conf &
fi
------ snip, snip ----------

And this in /etc/ppp/ip-down.d
------ snip, snip ----------
# Set the WWWOFFLE HTTP proxy server offline.
if [ -x /usr/bin/wwwoffle ]; then
   /usr/bin/wwwoffle -offline -c /etc/wwwoffle/wwwoffle.conf
fi


# Index WWWOFFLE-Cache in Background
umask 022
/var/spool/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full &

# Leaves Log-File in
# /var/spool/wwwoffle/search/htdig/wwwoffle-htdig.log
------ snip, snip ----------

Note: The index part is related to htdig.
Comment 1 Mads Martin Joergensen 2005-10-21 17:55:05 UTC
I've added the two scripts to /etc/ppp/if-{up,down}.d/

Thanks for the input!