From ee2d0d8f305d284f50900ff1ad5a74bef72763b7 Mon Sep 17 00:00:00 2001 From: thib Date: Tue, 17 Aug 2004 12:52:45 +0000 Subject: [PATCH] *** empty log message *** --- doc/en/todo.sgml | 20 +++++++++++--------- fcrondyn.c | 8 ++++---- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/doc/en/todo.sgml b/doc/en/todo.sgml index 656fab7..2c7ccb7 100644 --- a/doc/en/todo.sgml +++ b/doc/en/todo.sgml @@ -8,7 +8,7 @@ Foundation. A copy of the license is included in gfdl.sgml. --> - + Todo @@ -29,10 +29,6 @@ A copy of the license is included in gfdl.sgml. mails from B. Wohler : improve the doc + change (?) the name of fcrondyn -> fcronc ?? - - add an option to prevent fcron from running a job if the - system is running on battery (anacron does it ?) - @@ -51,10 +47,6 @@ A copy of the license is included in gfdl.sgml. Mem footprint reduction : use an/some union(s) in CL struct. - - implement more commands for fcrondyn, and make it more - secure and reliable - add a timezone option instead of the tzdiff (so it would look like !timezone(europe/paris)) (?) @@ -101,6 +93,16 @@ A copy of the license is included in gfdl.sgml. dependencies ?) Add a way to run a job only if a command returns true. It would permit, for instance, to run some jobs on a laptop only if it is on AC power. + and depending on the return value of the command, cancel + the execution, or wait x seconds before trying again, etc + + + add an option to prevent fcron from running a job if the + system is running on battery (anacron does it ?) + (add another queue - when system comes on-line, run the job + or move it to serialq. Do the same for lavg+serial job + -> when trying to run a job from serialq, test if system is on-line + and/or lavg is low, or move it back to another queue) add a system of data flow diff --git a/fcrondyn.c b/fcrondyn.c index 88e2f79..faf781d 100644 --- a/fcrondyn.c +++ b/fcrondyn.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcrondyn.c,v 1.12 2003-12-29 14:11:31 thib Exp $ */ + /* $Id: fcrondyn.c,v 1.13 2004-08-17 12:52:45 thib Exp $ */ /* fcrondyn : interact dynamically with running fcron process : * - list jobs, with their status, next time of execution, etc @@ -35,7 +35,7 @@ #include "allow.h" #include "read_string.h" -char rcs_info[] = "$Id: fcrondyn.c,v 1.12 2003-12-29 14:11:31 thib Exp $"; +char rcs_info[] = "$Id: fcrondyn.c,v 1.13 2004-08-17 12:52:45 thib Exp $"; void info(void); void usage(void); @@ -136,8 +136,8 @@ RETSIGTYPE sigpipe_handler(int x) /* handle broken pipes ... */ { - fprintf(stderr, "Broken pipe : fcron may have closed the connection\nif it has been " - "idle for more than %ds, otherwise check if fcron is still running.\n", + fprintf(stderr, "Broken pipe : fcron may have closed the connection\nThe connection " + "has been idle for more than %ds, or fcron may not be running anymore.\n", MAX_IDLE_TIME); fprintf(stderr, "Exiting ...\n"); -- 2.40.0