Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2001 19:50:18 +0300
From:      Odhiambo Washington <wash@iconnect.co.ke>
To:        freebsd-questions@FreeBSD.ORG
Cc:        tayers@bridge.com
Subject:   Re: $host daily run output
Message-ID:  <20010109195018.B18054@poeza.iconnect.co.ke>
In-Reply-To: <66joeq0k.fsf@tim.bridge.com>; from "Tim Ayers" on Tue, Jan 09, 2001 at 08:52:59AM -0600
References:  <66joeq0k.fsf@tim.bridge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Tim Ayers <tayers@bridge.com> [20010109 17:54]: writing on the subject '$host daily run output'
Tim> I have two FreeBSD 4.1.1 machines. On one, 'root' gets email messages
Tim> about "daily run output", "security check output", "weekly run
Tim> output", etc. I would like to enable these checks on the other box,
Tim> but haven't figured out how. Thanks in advance for the help.

Seems a to me like an automatic phenomena/process that should happen
with FreeBSD.
Whatever you're referring to are called 'periodics' (periodic system
checks) and are done via crontab. The file is /etc/crontab, just in case
it is not in there. I've always had those messages generated without
intervention and I always come in to alias root to an acount that I use
to read the msgs on a regular basis. You do this by editing the file
/etc/aliases (sometimes it actually happens to be /etc/mail/aliases) to
have an entry like

root:	admin@some.domain

Then run newaliases. That takes care of delivering systems mail to
admin.

Since cron daemon (the one that executes the contents of /etc/crontab)
runs automatically when system boots (unless you have an entry of
crontab_enable="NO" in your /etc/rc.conf) then I'd suggest you check if
you have a file called crontab in your /etc.
If it is there, see if you have that entry in /etc/rc.conf and change it
to "YES", else do below:

cp /usr/share/examples/etc/crontab /etc/crontab

cat /var/run/cron.pid
 
Get that number and then 

kill -HUP the_number_you_got


-Wash

--
Odhiambo Washington Inter-Connect Ltd.,
wash@iconnect.co.ke 5th Flr Furaha Plaza
Tel: 254 11 222604 Nkrumah Rd.,
Fax: 254 11 222636 PO Box 83613 MOMBASA, KE.

Among those whom I like or admire, I can find no common denominator, but among 
those I love, I can: all of them make me laugh. -W.H. Auden 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010109195018.B18054>