Ways to help investigating behavior of periodic scripts

Yasuhiro KIMURA yasu at utahime.org
Tue Oct 31 05:08:00 UTC 2017


From: Polytropon <freebsd at edvax.de>
Subject: Re: Ways to help investigating behavior of periodic scripts
Date: Tue, 31 Oct 2017 01:06:27 +0100

>> So are there any ways to help investigating this delay?
>> (Option to make periodic(8) write start and end time of each script to
>> syslog, for example.)
> 
> You could add this manually to /usr/sbin/periodic; I'm not
> aware of a built-in mechanism to log the starting / finishing
> time of the many scripts that are run (depending on daily,
> weekly or monthly call).

Oh, I checked /usr/sbin/periodic and understood. It's shell
script. Then I can directly add any code for investigation. And I know
logger(1) can be used to write to syslog from shell script. So I can
achieve what I said as example. Thank you for information.

---
Yasuhiro KIMURA


More information about the freebsd-questions mailing list