diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-03 13:19:00 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-03 13:19:00 +0200 |
commit | 81a048cb8a0353bf9306c7ce3ea24f9ee54ba9d3 (patch) | |
tree | eacd44f00bc3d4a8eb400a1ed693e85035951824 /unicorn.rb |
initial code for a minimal application to generate and destroy security tokens
Diffstat (limited to 'unicorn.rb')
-rw-r--r-- | unicorn.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unicorn.rb b/unicorn.rb new file mode 100644 index 0000000..e429352 --- /dev/null +++ b/unicorn.rb @@ -0,0 +1,10 @@ +service = File.dirname(File.expand_path(__FILE__)).split('/').last +config_dir = "#{ENV['HOME']}/.opentox/config" +log_dir = "#{ENV['HOME']}/.opentox/log" +log_file = File.join log_dir, "#{service}.log" +require File.join config_dir, service +port = eval("$#{service}[:port]") +listen port +pid File.join(log_dir,"#{service}.pid") +stderr_path log_file +stdout_path log_file
\ No newline at end of file |