Project

launch

0.0
No commit activity in last 3 years
No release in over 3 years
launch is a wrapper for liblaunch which lets you load, unload, reload, submit, remove, start, stop and list jobs for launchd as well as checkin from a process spawned by launchd and retrieve the sockets for the job that spawned the process.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

launch

launch is a wrapper for launchd which lets you load, unload, reload, submit, remove, start, stop and list jobs for launchd as well as checkin from a process spawned by launchd and retrieve the sockets for the job that spawned the process.

launchd is an open source framework for launching and managing daemons, programs and scripts provided by Apple.

Installing

Recommended

gem install launch

Edge

git clone https://github.com/samuelkadolph/ruby-launch
cd ruby-launch && rake install

Usage

Submit and remove jobs.

require "launch"

job = Launch::Job.new
job.label = "org.ruby.foo"
job.program = "/usr/bin/foo"
job.submit # => true

job.remove # => true

Start and stop jobs.

require "launch"

job = Launch::Job.find("org.ruby.foo")
job.start # => true
sleep 5
job.stop # => true

Requirements

A system with launchd installed.

Developers

Contributing

Pull requests are the desired method of contributing.

Running Tests

bundle install
rake install
rake test