Write PID in the daemon mode

This commit is contained in:
Dzmitry Plashchynski
2022-07-24 22:50:05 +03:00
parent 81d1e3496f
commit c5c58b559f
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ module Crono
setup_log
write_pid unless config.daemonize
write_pid if config.daemonize
load_rails
Cronotab.process(File.expand_path(config.cronotab))
print_banner