Basically I use this at home to restart a few services when I'm to lazy to ssh to my media center.
# Add services to config/config.yml
---
- id: 1
name: Sixad
bin: sixad
commands:
running:
stop: sudo service sixad stop
restart: sudo service sixad restart
not_running:
start: sudo service sixad start
- id: 2
name: MPD
bin: mpd
commands:
running:
stop: kill -15 %{pid}
not_running:
# Start the server
thin start
gem install foreman
sudo $(rbenv which foreman) export upstart /etc/init -a picomin -u YOURUSER -l SOMELOGPATH
# or rbenv-sudo if you have
brew install v8@3.15
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
bundle install
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8@3.15