https://github.com/dreamcat4/brew-launchd
For Mac Homebrew. An extension to start and stop Launchd services.
https://github.com/dreamcat4/brew-launchd
Last synced: 2 months ago
JSON representation
For Mac Homebrew. An extension to start and stop Launchd services.
- Host: GitHub
- URL: https://github.com/dreamcat4/brew-launchd
- Owner: dreamcat4
- License: mit
- Created: 2010-07-26T14:42:23.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-02T08:04:06.000Z (over 13 years ago)
- Last Synced: 2025-03-18T13:15:13.765Z (2 months ago)
- Language: Ruby
- Homepage: http://github.com/dreamcat4/brew-launchd
- Size: 199 KB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= brew launchd
An extension to start and stop Launchd services.
== Quick try out
Tip: if you dont want to mess with your current homebrew
installation, heres how to install seperately.$ git clone https://[email protected]/dreamcat4/homebrew.git
$ cd homebrew
$ git checkout issue-148-launchd
# Example
$ bin/brew install redis
$ bin/brew start redis
$ telnet localhost 6379 # (See if redis is running)
$ bin/brew stop redis
# Report on installed services
$ bin/brew launchd info# View the redis formula
$bin/brew edit redis# Further Help
$ man brew-launchd
$ bin/brew launchd --help== How to rebase changes onto homebrew-master
* Get the launchd core changes for homebrew (until they merge it)
brew update
git config core.whitespace nowarn
git remote add dreamcat4 git://github.com/dreamcat4/homebrew.git
git fetch --no-tags dreamcat4 +issue-148-launchd:launchd-core-changes
git rebase launchd-core-changes== Usage
$ brew launchd --help
start service,(s) Start launchd service(s)
Equivalent to launchctl load -w files...
Example $ brew start dnsmasq memcached couchdbstop service,(s) Stop launchd service(s)
Equivalent to launchctl unload -w files...
Example $ brew stop mamcached dnsmasqrestart service,(s) Restart launchd service(s)
Example $ brew restart couchdb--user At user login.
Otherwise, the default setting will be used.
Example $ brew start --user openvpn ddclient--boot At boot time. Requires sudo/root privelidges.
Otherwise, the default setting will be used.
Example $ sudo brew start --boot nginx mysqlinfo [service,(s)] Info for launchd service(s)
With no arguments prints info for all services.
Example $ brew launchd infoclean Clean missing/broken launchd service(s).
Examples $ brew launchd clean
$ sudo brew launchd cleandefault [--user|--boot] Set the default target to start launchd services.
The initial setting, --user will start daemons at
user login - from the Loginwindow (not over ssh).
Wheras --boot will set services to start at boot
time. But be aware that brew should be installed
to the root filesystem, not on a mounted volume.
Examples $ brew launchd default --boot
$ brew launchd default --user--help Show this message
--version Print version information
== Copyright
Copyright (c) 2010 Dreamcat4. See LICENSE for details.