Project

General

Profile

« Previous | Next » 

Revision 2f325370

Added by Marc Dequènes over 15 years ago

  • ID 2f32537046153e2120bb422bebd8c57572aa4067

[evol] postman can now be daemonized

View differences:

.gitignore
\#*#
config
log
run
postman
# http://www.ruby-doc.org/stdlib/libdoc/net/imap/rdoc/index.html
Dir.chdir(File.dirname(File.expand_path(__FILE__)))
$: << "./lib"
#require 'socket'
postman_daemon
#!/usr/bin/ruby
require 'daemons'
options = {
:app_name => "CyborgHood_Postman",
:dir_mode => :normal,
:dir => "/opt/cyborghood/run",
:multiple => false,
:mode => :exec,
:monitor => true
}
# deactivated: monitor process not stopped when program is asked to stop
# :backtrace => true,
Daemons.run(File.join(File.dirname(__FILE__), 'postman'), options)

Also available in: Unified diff