#!/usr/bin/env ruby $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') require 'smilies/server' Smilies::Server.start trap 'INT' do Smilies::Server.stop end trap 'TERM' do Smilies::Server.stop end Smilies::Server.join