From 9cf461df13d9bc867dd0f3b9b2fe62fe011dc2e4 Mon Sep 17 00:00:00 2001 From: thib Date: Wed, 21 Jun 2000 13:43:04 +0000 Subject: [PATCH] added option set_serial_once for bootrun --- conf.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/conf.c b/conf.c index 0f9a006..c00e690 100644 --- a/conf.c +++ b/conf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: conf.c,v 1.11 2000-06-21 09:48:26 thib Exp $ */ + /* $Id: conf.c,v 1.12 2000-06-21 13:43:04 thib Exp $ */ #include "fcron.h" @@ -452,8 +452,11 @@ read_file(const char *file_name, CF *cf) if ( is_td(cl->cl_option) ) { /* set the time and date of the next execution */ if ( cl->cl_nextexe <= now ) { - if ( is_bootrun(cl->cl_option) ) + if ( is_bootrun(cl->cl_option) ) { + debug(" boot-run %s", cl->cl_shell); + set_serial_once(cl->cl_option); add_serial_job(cl); + } set_next_exe(cl, 1); } else @@ -470,8 +473,8 @@ read_file(const char *file_name, CF *cf) if (cl->cl_pid > 0) { /* job has been stopped during execution : * launch it again */ - warn("job '%s' has not terminated : will be executed" - " again now.", cl->cl_shell); + warn("job '%s' has not terminated : executed again now.", + cl->cl_shell); cl->cl_pid = 0; add_serial_job(cl); } -- 2.50.1