add documentation and fix --help

This commit is contained in:
Jannis Hübl
2016-01-15 11:18:53 +01:00
parent 0affff21d1
commit 4a0c2d78e2
3 changed files with 8 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ module Crono
config.logfile = logfile
end
opts.on("-P", "--pidfile PATH", "Path to pidfile (Default: #{config.pidfile})") do |pidfile|
opts.on("-P", "--pidfile PATH", "Deprecated! use --piddir with --process_name; Path to pidfile (Default: #{config.pidfile})") do |pidfile|
config.pidfile = pidfile
end
@@ -140,7 +140,7 @@ module Crono
config.piddir = piddir
end
opts.on("-N", "--process_name name", "Name of the process (Default: #{config.process_name})") do |process_name|
opts.on("-N", "--process_name NAME", "Name of the process (Default: #{config.process_name})") do |process_name|
config.process_name = process_name
end

View File

@@ -13,6 +13,7 @@ module Crono
def initialize
self.cronotab = CRONOTAB
self.logfile = LOGFILE
@pidfile = PIDFILE
self.piddir = PIDDIR
self.process_name = PROCESS_NAME
self.daemonize = false