Re: Problems with periodic scripts in jails [Cron <operator_at_sosai> /usr/libexec/save-entropy]

From: Jos Backus <jos_at_catnook.com>
Date: Wed, 2 Jun 2004 13:02:14 -0700
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 catnook.com        _/_/   _/_/_/          require 'std/disclaimer'
Received on Wed Jun 02 2004 - 11:02:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:55 UTC