Sha256: 7402222e0e6c587b4e68b533d63b7b0affc9890c5e9f6fa158bd1d44356c8120

Contents?: true

Size: 939 Bytes

Versions: 6

Compression:

Stored size: 939 Bytes

Contents

#!/usr/bin/env ruby
require 'daemons'
require 'dotenv'
require 'optparse'

`mkdir -p ~/optimus_runner/logs`
`mkdir -p ~/optimus_runner/pids`
options = {
    :app_name           => "optimus-runner",
    :ARGV               => ARGV,
    :dir_mode           => :normal,
    :dir                => "#{File.expand_path('~')}/optimus_runner/pids",
    :multiple           => true,
    :log_output         => true,
    :pid_delimiter      => '.n',
    :backtrace          => true,
    :monitor            => true,
    :log_dir            => "#{File.expand_path('~')}/optimus_runner/logs",
    :logfilename        => 'optimus-runner.log'
}
optparser = OptionParser.new do |parser|
      parser.on('-e=FILE','--env=FILE', "Optimus Cloud Environment file") do |file|
        Dotenv.load(file)
      end
    end
optparser.parse!(ARGV)
Daemons.run('/usr/local/bin/optimus_runner_manager', options)
#Daemons.run('exe/optimus_runner_manager', options)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
optimus-runner-0.15.0 exe/optimus-runner
optimus-runner-0.14.0 exe/optimus-runner
optimus-runner-0.13.0 exe/optimus-runner
optimus-runner-0.12.0 exe/optimus-runner
optimus-runner-0.11.0 exe/optimus-runner
optimus-runner-0.10.0 exe/optimus-runner