cron doesnʼt need the --log-format and --date-format options.
* src/cron.in: remove the options * src/mcron/scripts/cron.scm: no need for extra processing
This commit is contained in:
parent
a0d493fa9b
commit
a5a032e7be
2 changed files with 8 additions and 9 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
(set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path)))
|
(set! %load-compiled-path (cons "%modbuilddir%" %load-compiled-path)))
|
||||||
|
|
||||||
(use-modules (mcron scripts cron)
|
(use-modules (mcron scripts cron)
|
||||||
|
(mcron utils)
|
||||||
(ice-9 command-line-processor))
|
(ice-9 command-line-processor))
|
||||||
|
|
||||||
(process-command-line (command-line)
|
(process-command-line (command-line)
|
||||||
|
|
|
||||||
|
|
@ -153,12 +153,10 @@ option.\n")
|
||||||
(with-output-to-file config-pid-file
|
(with-output-to-file config-pid-file
|
||||||
(λ () (display (getpid)) (newline)))
|
(λ () (display (getpid)) (newline)))
|
||||||
|
|
||||||
(parameterize ((%log-format (option-ref opts 'log-format (%log-format)))
|
;; Forever execute the 'run-job-loop', and when it drops out (can
|
||||||
(%date-format (option-ref opts 'date-format (%date-format))))
|
;; only be because a message has come in on the socket) we
|
||||||
;; Forever execute the 'run-job-loop', and when it drops out (can
|
;; process the socket request before restarting the loop again.
|
||||||
;; only be because a message has come in on the socket) we
|
(let ((fdes-list (cron-file-descriptors)))
|
||||||
;; process the socket request before restarting the loop again.
|
(while #t
|
||||||
(let ((fdes-list (cron-file-descriptors)))
|
(run-job-loop fdes-list)
|
||||||
(while #t
|
(unless (null? fdes-list) (process-update-request fdes-list)))))
|
||||||
(run-job-loop fdes-list)
|
|
||||||
(unless (null? fdes-list) (process-update-request fdes-list))))))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue