]> granicus.if.org Git - fcron/commitdiff
*** empty log message ***
authorthib <thib>
Tue, 17 Aug 2004 12:52:45 +0000 (12:52 +0000)
committerthib <thib>
Tue, 17 Aug 2004 12:52:45 +0000 (12:52 +0000)
doc/en/todo.sgml
fcrondyn.c

index 656fab796dc7254dd668be0e725aee33ed5cc6f8..2c7ccb7962ec8c9953e53fb8dae17d0e2874ebdb 100644 (file)
@@ -8,7 +8,7 @@ Foundation.
 A copy of the license is included in gfdl.sgml.
 -->
 
-<!-- $Id: todo.sgml,v 1.28 2004-08-12 09:52:15 thib Exp $ -->
+<!-- $Id: todo.sgml,v 1.29 2004-08-17 12:56:26 thib Exp $ -->
 
    <sect1 id="todo">
       <title>Todo</title>
@@ -29,10 +29,6 @@ A copy of the license is included in gfdl.sgml.
               <para>mails from B. Wohler : improve the doc + change (?)  the
                  name of fcrondyn -> fcronc ?? </para>
            </listitem>
-           <listitem>
-              <para>add an option to prevent fcron from running a job if the
-                 system is running on battery (anacron does it ?)</para>
-           </listitem>
         </itemizedlist>
       </sect2>
       <sect2>
@@ -51,10 +47,6 @@ A copy of the license is included in gfdl.sgml.
            <listitem>
               <para>Mem footprint reduction : use an/some union(s) in CL struct.</para>
            </listitem>
-           <listitem>
-              <para>implement more commands for fcrondyn, and make it more
-                 secure and reliable</para>
-           </listitem>
            <listitem>
               <para>add a timezone option instead of the tzdiff (so it would
                  look like !timezone(europe/paris)) (?)</para>
@@ -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.</para>
+              <para>and depending on the return value of the command, cancel
+                 the execution, or wait x seconds before trying again, etc</para>
+           </listitem>
+           <listitem>
+              <para>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)</para>
            </listitem>
            <listitem>
               <para>add a system of data flow</para>
index 88e2f7989f2ae1633ed730d8e70a4fb3931889b5..faf781d93221024dc7d117502c933eb655c7146f 100644 (file)
@@ -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");