It provides linux like service
command for OSX
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
# command: [start|stop|restart|enable|disable]
service <plist_name> <command>
# show LaunchAgents/LaunchDaemons list
service list
# if "~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist" exists
service mongodb start
service homebrew.mxcl.mongodb start
service homebrew.mxcl.mongodb.plist start
rm /usr/local/bin/service
MIT License