root/postman_daemon @ fa86d77a
2f325370 | Marc Dequenes | #!/usr/bin/ruby
|
|
require 'daemons'
|
|||
options = {
|
|||
:app_name => "CyborgHood_Postman",
|
|||
:dir_mode => :normal,
|
|||
c7904e2c | Marc Dequenes | :dir => "/opt/cyborghood/var/run",
|
|
2f325370 | Marc Dequenes | :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)
|