A new user interface for you! Read more...

File leafnode-hourly.cron of Package leafnode2

#!/bin/sh
# Uncomment the following the command to make fetchning news messages
# spool hourly
set -eu

[ -f /etc/sysconfig/leafnode ] && source /etc/sysconfig/leafnode

RUNNING=$(echo $LEAFNODE_HOURLY|tr '[:upper:]' '[:lower:]')
if [ "x$RUNNING" = "xyes" ] ; then
    if nm-online -t 5 -x -q ; then
        su news -s /bin/sh -c /usr/sbin/fetchnews
    fi
fi