endian firewall reboot [messaggio #116444] |
gio, 15 settembre 2011 05:02 |
rodolfo Messaggi: 32 Registrato: dicembre 2010 |
Member |
|
|
non ho visto dalle pagine di amministrazione di endian firewall un flag
per poter programmare un riavvio, cosi' "a naso" ho editato il file
/var/spool/cron/root.orig che copio/incollo
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=
HOME=/
#
&nolog */1 * * * * [ -x /bin/run-parts ] && run-parts --report
/etc/cron.minutely
&nolog */5 * * * * [ -x /bin/run-parts ] && run-parts --report
/etc/cron.cyclic
01 * * * * [ -x /bin/run-parts ] && run-parts --report /etc/cron.hourly
25 1 * * * [ -x /bin/run-parts ] && run-parts --report /etc/cron.daily
47 2 * * 0 [ -x /bin/run-parts ] && run-parts --report /etc/cron.weekly
52 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/null
3 1 * * 0 /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the week 4
weeks ago" >/dev/null
4 1 1 2 * /usr/sbin/ipacsum -r -H `/bin/hostname` -t "the year 2
years ago" >/dev/null
57 23 * * * [ -x /usr/lib/cron/logrotate.cron ] &&
/usr/lib/cron/logrotate.cron
# reboot quotidiano
0 3 * * * /sbin/reboot # riavvio alle 3 del mattino
tuttavia il reboot alle 3 del mattino non avviene. semplicemente il
sistema ignora la direttiva. Cosa sbaglio?
grazie
|
|
|