Sha256: e7485263831da2b57649871b64d9c1b6f8af107455f5320f284c3e9b0f96c42a
Contents?: true
Size: 830 Bytes
Versions: 2
Compression:
Stored size: 830 Bytes
Contents
# Generated jabber daemon # Do your post daemonization configuration here # At minimum you need just the first line (without the block), or a lot # of strange things might start happening... DaemonKit::Application.running! do |config| # Trap signals with blocks or procs # config.trap( 'INT' ) do # # do something clever # end # config.trap( 'TERM', Proc.new { puts 'Going down' } ) end # IMPORTANT CONFIGURATION NOTE # # Please review and update 'config/jabber.yml' accordingly or this # daemon won't work as advertised. # This block gets called every time a message has been received from a # valid master. DaemonKit::Jabber.received_messages do |message| # Simple echo service DaemonKit::Jabber.deliver( message.from, message.body ) end # Run our Jabber bot DaemonKit::Jabber.run
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bunnicula-0.2.2 | vendor/daemon-kit/daemon_generators/jabber/templates/libexec/daemon.rb |
bunnicula-0.2.1 | vendor/daemon_kit/daemon-kit/daemon_generators/jabber/templates/libexec/daemon.rb |