Problems with periodic scripts in jails [Cron <operator@sosai> /usr/libexec/save-entropy]

Jos Backus jos at
Wed Jun 2 20:02:17 GMT 2004

On Wed, Jun 02, 2004 at 03:46:58PM -0400, Charles Swiger wrote:
> My suggestion would be to move the invocation of lockfile into the 
> runjob script itself, so that your crontab is smaller and less 
> cluttered, and your runjob scripts become smart enough to fend for 
> themselves.

Or use a service controller (e.g. svc -o /service/foo). The service controller
guarantees that only one instance of the service will be active at any one
time. Combine this with starting the service just once. Bonus: no lock files
needed at all.

Jos Backus                       _/  _/_/_/      Sunnyvale, CA
                                _/  _/   _/
                               _/  _/_/_/
                          _/  _/  _/    _/
jos at        _/_/   _/_/_/          require 'std/disclaimer'

More information about the freebsd-current mailing list