Sha256: 29e9133e366dd33d4017604f4a1a7a02d91f940c858f5de60d25ae2e743d7685

Contents?: true

Size: 392 Bytes

Versions: 15

Compression:

Stored size: 392 Bytes

Contents

#!/usr/bin/ruby

require "dyndoc/srv/interactive-server"

if ["--no-forever","--no-daemon"].include? ARGV[0]
  Dyndoc::InteractiveServer.new.run
else
  require 'daemons'
  require 'dyndoc/init/home'
  require 'fileutils'

  dir_pids=File.join(Dyndoc.home,"pids")
  FileUtils.mkdir_p dir_pids
  Daemons.run_proc('dyn-srv',{dir: dir_pids}) do
      Dyndoc::InteractiveServer.new.run
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dyndoc-ruby-1.0.4 bin/dyn-srv
dyndoc-ruby-1.0.3 bin/dyn-srv
dyndoc-ruby-1.0.2 bin/dyn-srv
dyndoc-ruby-1.0.1 bin/dyn-srv
dyndoc-ruby-1.0.0 bin/dyn-srv
dyndoc-ruby-0.9.17 bin/dyn-srv
dyndoc-ruby-0.9.16 bin/dyn-srv
dyndoc-ruby-0.9.14 bin/dyn-srv
dyndoc-ruby-0.9.12 bin/dyn-srv
dyndoc-ruby-0.9.11 bin/dyn-srv
dyndoc-ruby-0.9.10 bin/dyn-srv
dyndoc-ruby-0.9.9 bin/dyn-srv
dyndoc-ruby-0.9.8 bin/dyn-srv
dyndoc-ruby-0.9.7 bin/dyn-srv
dyndoc-ruby-0.9.5 bin/dyn-srv