[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cronjob di INN non eseguito



On Sat, Jul 05, 2003 at 06:35:52PM +0200, Pino Pinto wrote:
> * Fabrizio Chiarello <ponch@linux.it> [050703, 18:31]:
> > Se vuoi ti passo il mio script.
> 
> Sì, grazie! Sono ancora una schiappa con anacron...
allora, questo è cron.d/inn2, viene eseguito da cron all'*avvio*.
-----------
SHELL=/bin/sh
PATH=/usr/lib/news/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Every hour, run an rnews -U. This is not only for UUCP sites, but
# also to process queud up articles put there by in.nnrpd in case
# innd wasn't accepting any articles.

@hourly news [ -x /usr/bin/rnews ] && rnews -U
-----------

questo è cron.daily/inn2, eseguito da anacron una volta al giorno,
normalmente 5 min dopo l'avvio:
-----------
#!/bin/sh
SHELL=/bin/sh
 
test -x /usr/lib/news/bin/news.daily || exit 0
test -x /usr/lib/news/bin/ctlinnd || exit 0

set -e

cd /var/spool/news

# Expire old news and overview entries nightly, generate reports.
su -s "$SHELL" news -c '/usr/lib/news/bin/news.daily expireover lowmark delayrm'

# Refresh the cached IP addresses every day.
su -s "$SHELL" news -c '/usr/lib/news/bin/ctlinnd -t 300 -s reload incoming.conf "flush cache"'

exit 0
-----------

se hai problemi chiedi pure

-- 
real name: Fabrizio Chiarello	| a Debian GNU/Linux | i'm in the could
nick:	   ponch		|     is running     | do better category
e-mail:	   ponch@linux.it	|    on Linux v2.4   | 		  - ponch
GnuPG Key: 0x8C5D6888 / A699 895F 564B 6099 860A  8039 B5A3 6A0B 8C5D 6888

Attachment: pgp7DuN35ygT2.pgp
Description: PGP signature


Reply to: