On 31/03/2009, at 6:49 AM, Jean-Frangois SIMON wrote:

Hi,
First of all I would prefer to awayke disks weekly instead of daily
for just
the df purpose.
I would try to do this, your advises are also welcome if any.
[cut]
The best is in my case to switch the df to weekly and put the time
of that
op during day.
[cut]

$ man daily
DAILY(8)                OpenBSD System Manager's Manual
DAILY(8)

NAME
     daily, weekly, monthly - periodic system maintenance
...
DESCRIPTION
     The three files /etc/daily, /etc/weekly, and /etc/monthly are
shell
     scripts run on a periodic basis by the clock daemon, cron(8).
They take
     care of some basic administrative tasks.  The results are
mailed to root.
...
     These scripts should not be altered.
...

So change /etc/daily and /etc/weekly ...

/etc/daily ...
    115
    116 echo ""
    117 echo "Checking subsystem status:"
    118 echo ""
    119 echo "disks:"
    120 df -kl
    121 echo ""
    122 dump W
    123 echo ""
    124

Guess taking out lines around 120 and/or moving them to
/etc/weekly might achieve what you are after.

But do read that line about "these scripts should not be altered" -
you're on your own.

And do be careful when you upgrade ...

http://www.openbsd.org/faq/upgrade45.html#upgrade

(But I believe that the upgrade does not touch /etc unless
you do it, cannot find a definite link to prove that.)

HTH.

Reply via email to