Skip to content

Instantly share code, notes, and snippets.

@damm
Created November 28, 2009 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damm/244310 to your computer and use it in GitHub Desktop.
Save damm/244310 to your computer and use it in GitHub Desktop.
These go in /etc/init and are related to upstart on karmic... if you don't know what your doing please don't use these.
description "chef server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec /usr/bin/chef-start.sh
# solr
description "chef solr indexer"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec chef-solr-indexer
#!/bin/bash
cd /usr/lib/ruby/gems/1.8/gems/chef-server-0.8.0;unicorn -p 4000 -E none
# nanite
description "nanite mapper"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec /usr/bin/nanite-mapper --redis 127.0.0.1:6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment