Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 385 Bytes
require 'services'
services = BitServ::Services.new 'bitserv.yaml'
LDAP.config = services.config['ldap']
trap "INT" do
services.shutdown "Caught interupt"
exit
end
EventMachine.run do
services.run! # TODO: Have two different calls, one that connects and
# one that starts EM and then connects. Possibly #connect to connect
# the uplinks and #run! to run EventMachine.
end