Mercurial > noffle
diff debian/noffle-cronfetch @ 442:fc3e4fc0a88d noffle
[svn] update
author | godisch |
---|---|
date | Wed, 25 Jun 2003 16:34:53 +0100 (2003-06-25) |
parents | 3b5b7f3fd71f |
children |
line wrap: on
line diff
--- a/debian/noffle-cronfetch Wed Jun 25 16:23:27 2003 +0100 +++ b/debian/noffle-cronfetch Wed Jun 25 16:34:53 2003 +0100 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: noffle-cronfetch 434 2003-02-14 13:54:32Z godisch $ +# $Id: noffle-cronfetch 585 2003-06-25 15:34:53Z godisch $ # # noffle script to fetch articles, run from cron @@ -14,20 +14,20 @@ if [ -f "$LOCKFILE" ]; then # check if pid still exists - if kill -0 `cat $LOCKFILE`; then + 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 + rm -f "$LOCKFILE" fi -trap 'rm -f $LOCKFILE' 0 1 2 15 +trap 'rm -f "$LOCKFILE"' 0 1 2 15 -echo $$ > $LOCKFILE -$NOFFLE --fetch -rm -f $LOCKFILE +echo "$$" > "$LOCKFILE" +"$NOFFLE" --fetch +rm -f "$LOCKFILE" trap '' 0 exit 0