First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 71674
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Black <dragonheart@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: BlaisorBlade <blaisorblade_spam@yahoo.it>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 71674 depends on: Show dependency tree
Show dependency graph
Bug 71674 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-11-18 08:25 0000
Quoting from /etc/init.d/wwwoffled-online:

start() {
        ebegin "Starting wwwoffled-online"
        wwwoffle -online -c /etc/wwwoffle/wwwoffle.conf
        wwwoffle -fetch -c /etc/wwwoffle/wwwoffle.conf
        eend $?
}

wwwoffle -fetch never detaches from the console. This means that adding this to the default runlevel (something which should be reasonable) will make booting pause until the fetch is complete (and it can take a lot of time).

I would propose instead to just turn it online and to make the fetch by done by crontab (wwwoffled does not requests again everything when redoing wwwoffle -fetch) or, to be more similar to the recommended wwwoffled setup, to start it in background (not tested if that works).

I've written a cron script that I'm attaching.

This is what I added to /etc/crontab (you could move the script to cron.hourly if you prefer):

*/30  *  * * *  root    /usr/local/bin/wwwOffFetchIfNeeded

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Daniel Black 2004-11-19 02:10:01 0000 -------
I made it run in the background. Please copy file from
/usr/portage/www-proxy/wwwoffle/files/wwwoffle-2.8c-init-online to
/etc/init.d/wwwoffled-online or remerge wwwoffle take effect.

Thanks for your contribution and good idea.

------- Comment #2 From BlaisorBlade 2004-11-19 16:40:46 0000 -------
1) Please redirect even stderr to /dev/null or to some special log - it shows
some messages at start and end, which appear during the work. Not nice.

2) Also, please do the same at wwwoffled startup - it shows that annoying 

wwwoffled[3934] Important: WWWOFFLE Demon Version 2.8c (with zlib,without ipv6)
started.                              [ ok ]

at startup.

3) Also, sorry for not opening another bug, could you also replace
  need dns
with
  use dns
? No dns service is normally present, so after installation wwwoffle won't work
normally - I removed the dns dependency by hand after install.

In fact everything else than wwwoffle just "uses" dns (i.e. have a conditional
dependency, which doesn't hold when no dns provider is installed) rather than
"needing" it, like wwwoffle does. I'm referring to the "use" and "need"
keyword.

------- Comment #3 From Daniel Black 2004-11-19 17:16:45 0000 -------
ok - done

------- Comment #4 From Alin Năstac 2005-04-06 12:23:17 0000 -------
*** Bug 71615 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug