mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-25 19:01:53 +01:00
Updated CLI and Config to default to not writing a pidfile unless daemonized.
This commit is contained in:
@@ -50,6 +50,7 @@ module Crono
|
||||
end
|
||||
|
||||
def write_pid
|
||||
return unless config.pidfile
|
||||
pidfile = File.expand_path(config.pidfile)
|
||||
File.write(pidfile, ::Process.pid)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user