Mercurial > noffle
view debian/noffle-cronfetch @ 386:278a03a392b1 noffle
[svn] * src/client.c: Return correct status from Client_postArt() and add
function comment detailing what return code should be, because it's
not obvious that the return code should report success when the
posting failed for reasons other than connection problems. This should fix
problem with failing posting stopping fetches. Thanks to Dan Jacobson
for spotting this.
* src/client.c: Fix problemette with filter discards not updating remote
group article count and so the overview being refetched until
and article appears that doesn't fall foul of the filter and thus does
update the remove group 'next article' marker. Thanks to Dan Jacobson
for spotting this.
author | bears |
---|---|
date | Thu, 22 May 2003 09:23:33 +0100 |
parents | 3b5b7f3fd71f |
children | fc3e4fc0a88d |
line wrap: on
line source
#!/bin/sh # $Id: noffle-cronfetch 434 2003-02-14 13:54:32Z godisch $ # # noffle script to fetch articles, run from cron exec > /dev/null 2>&1 LOCKFILE=/var/lock/noffle/noffle-cronfetch.pid NOFFLE=/usr/bin/noffle . /etc/default/noffle [ "$NOFFLE_FETCHMODE" = cron ] || exit 0 if [ -f "$LOCKFILE" ]; then # check if pid still exists if kill -0 `cat $LOCKFILE`; then logger -i -p news.info -t noffle-cronfetch -- "previous instance still running" exit 0 fi # false lock logger -i -p news.warning -t noffle-cronfetch -- "removing stale lock $LOCKFILE" rm -f $LOCKFILE fi trap 'rm -f $LOCKFILE' 0 1 2 15 echo $$ > $LOCKFILE $NOFFLE --fetch rm -f $LOCKFILE trap '' 0 exit 0