Automic VaultAutomic Vault

brew

lockrun を Homebrew, apk でインストール

lockrun のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install lockrun

local Homebrew formula metadata

概要

パッケージ概要

Run cron jobs with overrun protection

コマンドとエイリアス

  • lockrun

履歴

プロジェクトの歴史と使われ方

lockrun is a small public-domain Unix utility by Steve Friedl for running cron jobs with overrun protection. It wraps a command, takes an advisory file lock, and prevents overlapping invocations from piling up.

プロジェクトの歴史

The official Unixwiz.net page explains that lockrun was created in response to network-monitoring cron jobs that could run longer than their schedule interval. The tool was designed as a protective wrapper that checks whether another protected instance is already running before launching the requested command.

lockrun is distributed as portable C source code rather than through a hosted source repository. The official page documents building it with `gcc lockrun.c -o lockrun` and installing it into `/usr/local/bin`.

採用の歴史

The tool's natural audience is Unix administrators with cron jobs that must not overlap, especially polling and monitoring jobs. It was tested on FreeBSD and Linux, received a report of working on Mac OS X, and later gained portability work such as Solaris `lockf()` support.

Homebrew and Alpine packaging made the small C utility easier to install without manually downloading and compiling the source file.

使われ方

A typical crontab entry invokes `lockrun --lockfile=/var/run/name.lockrun -- command`. If the lock cannot be acquired, lockrun exits instead of launching a second copy; `--wait`, `--quiet`, `--verbose`, and `--maxtime` adjust behavior.

The official documentation warns that the lockfile should be placed in a directory protected from other users and not in `/tmp`, because a writable directory could enable symlink attacks against the lockfile path.

パッケージ好きにとっての重要性

lockrun is package-manager-relevant because it solves a narrow operations problem with one C file and no daemon. It overlaps with `flock(1)` patterns, but its documented cron-oriented interface made it a remembered admin tool.

Its packaging story is also a reminder that not every useful Unix package has a modern VCS repository; sometimes the authoritative upstream is a source file and a carefully written HTML manual.

タイムライン

  • 2006: Initial lockrun release.
  • 2009: Solaris 10 `lockf()` support was added.
  • 2010: `--quiet` parameter was added.
  • 2012: Documentation about no kill option, `--retries`, and `setsid()` support were added.

Related projects

  • flock(1), run-one, and daemon supervisors solve adjacent locking or single-instance execution problems.
  • Cacti poller scripts are used in the official documentation as a motivating cron example.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 13 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
lockruncliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版1.1.3
マネージャ更新日2026-05-19
ローカルデータOK
上流not checked
検出された最新未検出

http://unixwiz.net/tools/lockrun.html

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:lockrun
バージョン1.1.3
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/lockrun
ホームページhttp://unixwiz.net/tools/lockrun.html
上流ドキュメントhttp://unixwiz.net/tools/lockrun.html
ライセンスLicenseRef-Homebrew-public-domain
ソースアーカイブhttp://unixwiz.net/tools/lockrun.c
最終更新2026-05-19T13:03:29-04:00
Pulseupdated
Bottle利用可能 (対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelockrun
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

apk95%

lockrun 1.1.3-r1

Run cron job with overrun protection

http://unixwiz.net/tools/lockrun.html

sudo apk add lockrun
  • License: Public-Domain
  • Architecture: x86_64
  • Source Package: lockrun
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Lockrun
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lockrun from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment