|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
no mail to root after dump/restore
i moved freeBSD from a 20 GB drive to a 40 GB drive. To accomplish this, I installed freeBSD on the 40 GB drive, then did a dump/restore of each partition from the 20 to the 40.
almost everything, to the best of my knowledge, works just the same as before. the exception to this is that when i log in as root, i am not receiving those daily mails. this is distressing. is something disabled that i need to re-enable? |
|
#2
|
||||
|
||||
|
Check /etc/periodic.conf to make sure you have the variables set correctly (the daily_* variables). Also check your mail is actually being delivered correctly, perhaps send a test mail to the affected account(s).
__________________
FreeBSD Admin Tips Tricks and Scripts |
|
#3
|
|||
|
|||
|
Quote:
root can receive mail no problem. however, i do not have a periodic.conf. I am running on 5.2, if that makes a difference. my crontab, for you reading pleasure: Code:
# /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # #minute hour mday month wday who command # */5 * * * * root /usr/libexec/atrun # # Save some entropy so that /dev/random can re-seed on boot. */11 * * * * operator /usr/libexec/save-entropy # # Rotate log files every hour, if necessary. 0 * * * * root newsyslog # # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly # # Adjust the time zone if the CMOS clock keeps local time, as opposed to # UTC time. See adjkerntz(8) for details. 1,31 0-5 * * * root adjkerntz -a hmmmm... and.. my clock isn't right anymore.. i have to use date after every boot to correct it. so.. something didn't copy right with the cron stuff? what to do? |
|
#4
|
||||
|
||||
|
Copy /etc/defaults/periodic.conf to /etc/periodic.conf and then modify it as you want. The variable that determines where the output goes is daily_output, so modify that to the user you want the output from the daily periodic runs to go. Remember though there has to be *some* output from the daily periodic run otherwise you won't get any mail - you need to set all the other daily_* variables to decide what periodic checks on a daily basis.
Read the manpage for periodic for more info. As for the clock problem, make sure the clock is set correctly in the BIOS. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > no mail to root after dump/restore |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|