Sha256: 511f3b065c10824feffb32069fa7d321a4a121b4cbe186904adc0b5d5f6be329

Contents?: true

Size: 658 Bytes

Versions: 4

Compression:

Stored size: 658 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/rsense/client/daemon'
require_relative '../lib/rsense/client/runner'
require_relative "../lib/rsense/version"
require "jruby-jars"
require "pathname"

daemon = Rsense::Client::Daemon.new(ARGV[1..-1])

if ARGV[0] == 'start'
  daemon.start
  STDERR.puts "rsense version: #{Rsense::VERSION}"
  STDERR.puts "logs at: /tmp/rsense.log"
  STDERR.puts "process running at: #{Rsense::Client::Runner.get_pid}"
elsif ARGV[0] == 'stop'
  daemon.stop
elsif ARGV[0] == 'restart'
  daemon.stop
  daemon.start
else
  STDERR.puts "rsense version #{Rsense::VERSION}"
  STDERR.puts "Usage: rsense <start|stop|restart>"
  exit!
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rsense-0.5.18 bin/rsense
rsense-0.5.16 bin/rsense
rsense-0.5.15 bin/rsense
rsense-0.5.14 bin/rsense