Skip to main content
Install cordon as an OS-managed background service that starts automatically and restarts on failure.

cordon service install

cordon service install [OPTIONS]
OptionDefaultDescription
--namedefaultService instance name (for running multiple instances)
--configcordon.yamlPath to config file
Installs a launchd user agent at ~/Library/LaunchAgents/.
cordon service install --config /path/to/cordon.yaml

cordon service uninstall

cordon service uninstall [OPTIONS]
OptionDefaultDescription
--namedefaultService instance name

Multiple instances

Run separate cordon instances with different configurations:
cordon service install --name api-proxy --config ~/configs/api-cordon.yaml
cordon service install --name db-proxy --config ~/configs/db-cordon.yaml
Each instance gets its own service with an independent lifecycle.