Skip to content

notakaos/osx-service-cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

It provides linux like service command for OSX

Install

git clone https://github.com/nobutakaoshiro/osx-service-cmd.git
cd osx-service-cmd

# Install 'service' command to /usr/local/bin
./install.sh

# Add /usr/local/bin to $PATH if you needed
# ~/.bash_profile
export PATH=/usr/local/bin:$PATH

Usage

# command: [start|stop|restart|enable|disable]
service <plist_name> <command>

# show LaunchAgents/LaunchDaemons list
service list

Example

# if "~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist" exists
service mongodb start
service homebrew.mxcl.mongodb start
service homebrew.mxcl.mongodb.plist start

Uninstall

rm /usr/local/bin/service

LICENSE

MIT License

About

Linux like 'service' command for OSX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages