Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Find, load and unload launchd plists in your home Library agent and daemon folders
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
lctl.gemspec

README.md

lctl

lctl is short for launchctl. This is just something I hacked together to avoid having to type long paths when restarting postgresql and similar, which I installed using Homebrew.

Author

James Conroy-Finn

Installation

gem install lctl

Usage

You can search for plists in ~/Libary/LaunchAgents and ~/Library/LaunchDaemons using lctl list [NAME]. With no name all plists will be output. With a name only files that contain the name will be output.

The same search mechanism is used when loading and unloading plists. If more than one match is found the list of matches will be output and a warning printed.

lctl help [TASK]  # Describe available tasks or one specific task
lctl list [NAME]  # Find any agents or daemons matching optional NAME
lctl load NAME    # Load a launchd process in ~/Library/Launch[Agents|Daemons]
lctl unload NAME  # Unload a launchd process in ~/Library/Launch[Agents|Daemons]
lctl version      # Prints Lctl's version information
Something went wrong with that request. Please try again.