Add pidfile option

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 19:45:56 +02:00
parent 3b0c0465ca
commit fea559c984
2 changed files with 5 additions and 1 deletions

View File

@@ -2,14 +2,17 @@ module Crono
class Config
CRONOTAB = "config/cronotab.rb"
LOGFILE = "log/crono.log"
PIDFILE = "tmp/pids/crono.pid"
attr_accessor :cronotab
attr_accessor :logfile
attr_accessor :pidfile
attr_accessor :daemonize
def initialize
self.cronotab = CRONOTAB
self.logfile = LOGFILE
self.pidfile = PIDFILE
self.daemonize = false
end
end