Jump to content
Sign in to follow this  
DIMMon

FCRON перестает выполнять задания

Recommended Posts

Здравствуйте, с недавних пор fcron периодически перестает выполнять задания. После перезапуска службы некоторое время все работает нормально, а потом снова все повторяется. А я даже не знаю куда он ведет логи и не могу выяснить причину этого. Есть конечно вариант автоматически перезапускать его каждые 30 минут, но как? ОС CentOS. Вот конфик fcron и crontab

#!/bin/sh## chkconfig: 2345 40 60# description: fcron is a scheduler especially useful for people \#              who are not running their system all the time.# processname: fcron# pidfile: /var/run/fcron.pid# config: /var/spool/fcron/*# $Id: sysVinit-launcher,v 1.10 2006/01/11 00:54:44 thib Exp thib $export PATH="/sbin:/usr/sbin:/bin:/usr/bin"# Source function library.. /etc/rc.d/init.d/functions[ -f /usr/sbin/fcron ] || exit 0[ -f /etc/fcron.conf ] || exit 0RETVAL=0prog="fcron"start() {	installcrontab        # Start daemons.	echo -n $"Starting $prog:"	daemon /usr/sbin/fcron -c /etc/fcron.conf	RETVAL=$?	echo        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fcron	return $RETVAL}stop() {	echo -n $"Shutting down $prog"	killproc fcron	RETVAL=$?	echo        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/fcron /var/run/fcron.pid	return $RETVAL}condstop() {    status fcron &>/dev/null && stop}restart() {    stop    start}installcrontab() {        echo -n $"Installing crontab"        rm -f /var/spool/cron/root 2>/dev/null        TMPFILE=$(mktemp /tmp/crontab.XXXXXXXXXX) || return 1	cat /etc/crontab > $TMPFILE 2>/dev/null || return 1	cat /etc/cron.d/* >> $TMPFILE  2>/dev/null 	fcrontab -u root $TMPFILE &>/dev/null        echo	condstop}#  See how we were called.case "$1" in  start)	start	;;  stop)	stop	;;  condstop)        condstop        ;;  condrestart)	status fcron &>/dev/null && restart        RETVAL=$?        ;;  status)	status fcron	RETVAL=$?	;;  restart)	restart	RETVAL=$?	;;  installcrontab)	installcrontab	start	RETVAL=$?	;;  reload)	killall -HUP fcron	RETVAL=$?	;;  *)	echo "Usage: fcron {start|stop|status|restart|condrestart|condstop|installcrontab}"	exit 1esacexit $RETVAL

SHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=HOME=/#&nolog */1 * * * *	[ -x /bin/run-parts ] && run-parts --report /etc/cron.minutely&nolog */5 * * * *	[ -x /bin/run-parts ] && run-parts --report /etc/cron.cyclic01  * * * *	[ -x /bin/run-parts ] && run-parts --report /etc/cron.hourly25  1 * * *	[ -x /bin/run-parts ] && run-parts --report /etc/cron.daily47  2 * * 0	[ -x /bin/run-parts ] && run-parts --report /etc/cron.weekly52  3 1 * *	[ -x /bin/run-parts ] && run-parts --report /etc/cron.monthly#@nolog 5	[ -x /bin/run-parts ] && run-parts --report /etc/anacron.cyclic@ 1h	[ -x /bin/run-parts ] && run-parts --report /etc/anacron.hourly@ 1d	[ -x /bin/run-parts ] && run-parts --report /etc/anacron.daily@ 1w	[ -x /bin/run-parts ] && run-parts --report /etc/anacron.weekly@ 1m	[ -x /bin/run-parts ] && run-parts --report /etc/anacron.monthly# Summarize ip accounting info:2 1 * * * 	/usr/sbin/ipacsum -r -H `/bin/hostname` -t "the day 2 days ago" >/dev/null3 1 * * 0 	/usr/sbin/ipacsum -r -H `/bin/hostname` -t "the week 4 weeks ago" >/dev/null4 1 1 2 * 	/usr/sbin/ipacsum -r -H `/bin/hostname` -t "the year 2 years ago" >/dev/null

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...