Sha256: f8121f73b1e60c405b3ff09e606229971f7808b148733909ea9ecf6101ce74cc

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

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

`mkdir -p ~/optimus_runner/logs`
`mkdir -p ~/optimus_runner/pids`
options = {
    :app_name           => "optimus-runner",
    :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'
}
Daemons.run('optimus_runner_manager', options)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
optimus-runner-0.5.0 exe/optimus-runner