0.0
No commit activity in last 3 years
No release in over 3 years
Companion tool for Brew (Mac Homebrew). An extension to start and stop Launchd services.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.9.5
>= 1.4.0
>= 0
>= 1.3.0
>= 0
 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://dreamcat4@github.com/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 couchdb

stop service,(s)          Stop launchd service(s)
                          Equivalent to launchctl unload -w files...
                          Example  $ brew stop mamcached dnsmasq

restart 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 mysql

info [service,(s)]        Info for launchd service(s)
                          With no arguments prints info for all services.
                          Example  $ brew launchd info

clean                     Clean missing/broken launchd service(s).

                          Examples $ brew launchd clean
                                   $ sudo brew launchd clean

default [--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 © 2010 Dreamcat4. See LICENSE for details.