Package: leafnode Version: 2.0.0.alpha20090406a-1 Severity: wishlist Hi,
I'm happily using leafnode and really like the 15 minute fetchnews cron job. However, the machine I'm running on is a laptop. As such, it doesn't have a permanent internet connection. There are two improvements that would be great: firstly, fetchnews could exit silently when there is no network connection. This would avoid the occasional email I get from cron complaining that I didn't have a connection up on a 00,15,30,45 minute mark. I don't know whether there's a more "server-oriented" way to check this than requiring something massive and desktoppy like network-manager, though. Secondly, to avoid having to wait for the next 15 minute mark when I resume my laptop from sleep, I've got the following in /etc/network/if-up.d/99leafnode. > #!/bin/sh > > if [ "$IFACE" = "lo" ]; then > exit 0 > fi > > if [ -x /etc/news/leafnode/do-fetch-news ] > then /etc/news/leafnode/do-fetch-news > fi This works nicely... except if I resume my laptop at XX:44 or the like. Then I get an email complaining about the lockfile being held when the cron job starts. Would it be possible to store the locking time in the lockfile so that do-fetch-news could choose to exit silently if the other process had been going less than 10 minutes (say)? That would avoid ignoring permanent lockups, but would also avoid spamming root if he/she intentionally starts fetchnews near the same time. I could happily code up patches for either of the above (I think I can see how to do the latter), but I thought I should check first whether they had any chance of being accepted. Any help/comments gratefully received! Rupert -- Package-specific info:
version: leafnode-2.0.0.alpha20090406a.luascript current machine: Linux hake 3.2.0-rc2+ #23 SMP PREEMPT Thu Nov 17 11:59:36 GMT 2011 i686 GNU/Linux bindir: /usr/bin sysconfdir: /etc/news/leafnode default spooldir: /var/spool/news IPv6: yes default MTA: /usr/sbin/sendmail pcre version: 8.12 2011-01-15 Lua scripting: no
-- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.2.0-rc2+ (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages leafnode depends on: ii debconf [debconf-2.0] 1.5.41 ii libc6 2.13-22 ii libpam0g 1.1.3-6 ii libpcre3 8.12-4 ii logrotate 3.8.1-1 ii netbase 4.47 ii openbsd-inetd [inet-superserver] 0.20091229-1 ii tcpd 7.6.q-22 leafnode recommends no packages. Versions of packages leafnode suggests: ii emacs-snapshot [news-reader] 1:20111213-1 ii lynx-cur [news-reader] 2.8.8dev.9-2 ii perl 5.14.2-6 -- Configuration Files: /etc/news/leafnode/local.groups changed: local.electronics.maxim.app-notes y Local Unmoderated Group local.electronics.edn.design-ideas y Local Unmoderated Group -- debconf information: leafnode/update-groups: false leafnode/tcpd: true leafnode/ppp: * leafnode/network: permanent leafnode/purge: false * leafnode/server: news.gmane.org