Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71674 - /etc/init.d/wwwoffled-online is unusable since it also does the fetch without detaching:
Summary: /etc/init.d/wwwoffled-online is unusable since it also does the fetch without...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
: 71615 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-18 08:25 UTC by BlaisorBlade
Modified: 2005-04-06 12:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BlaisorBlade 2004-11-18 08:25:56 UTC
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 Daniel Black (RETIRED) gentoo-dev 2004-11-19 02:10:01 UTC
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 BlaisorBlade 2004-11-19 16:40:46 UTC
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 Daniel Black (RETIRED) gentoo-dev 2004-11-19 17:16:45 UTC
ok - done
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2005-04-06 12:23:17 UTC
*** Bug 71615 has been marked as a duplicate of this bug. ***