lockrun
« Back to VersTracker
Description:
Run cron jobs with overrun protection
Type: Formula  |  Latest Version: 1.1.3@0  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: cron locking scheduler automation system-utilities
Install: brew install lockrun
About:
Lockrun is a utility designed to prevent the simultaneous execution of cron jobs or scripts. It uses a lock file to ensure that if a job is still running when its next scheduled time arrives, the new instance will exit immediately rather than overlap. This provides overrun protection, preventing resource contention and ensuring orderly execution of scheduled tasks.
Key Features:
  • Prevents overlapping execution of cron jobs
  • Simple command-line interface
  • Reliable file-based locking mechanism
  • Minimal overhead and dependencies
Use Cases:
  • Ensuring backup scripts do not overlap if previous runs take longer than expected
  • Preventing resource-intensive data processing jobs from stacking up
Alternatives:
  • flock – flock is part of util-linux and uses kernel file locking, while lockrun uses a simpler PID-based check.
  • nice – nice adjusts process priority but does not prevent overlapping execution.
Version History
Detected Version Rev Change Commit
Sep 14, 2025 8:14pm 1.1.3 0 VERSION_BUMP 1a2c5911
Sep 14, 2024 3:19pm 1.1.3 0 VERSION_BUMP b1afbf2a