* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: config.h.in,v 1.12 2000-08-22 21:18:51 thib Exp $ */
+ /* $Id: config.h.in,v 1.13 2000-08-28 17:54:46 thib Exp $ */
/* *********************************************************** */
#define ETC "/etc/"
#endif
+#ifndef PROC /* directory where is mounted the procfs */
+#define PROC "/proc/"
+#endif
+
#ifndef DEBUG
#define DEBUG 0 /* 1 if you want debug mode */
#endif
/* *** memory *** */
-#define EXE_ARRAY_INITIAL_SIZE 6 /* initial number of possible running job
+#define EXE_INITIAL_SIZE 6 /* initial number of possible running job
* if more jobs have to be run simultaneously,
* fcron will have to calloc() more memory */
-#define EXE_ARRAY_GROW_SIZE 5 /* this is the number of entries that will be
+#define EXE_GROW_SIZE 5 /* this is the number of entries that will be
* added to exe_array each time it has to grow
* up */
+#define SERIAL_QUEUE_MAX 20 /* if serial queue contains this number of entries,
+ * the next serial job to be executed will be run
+ * non-serially each time a serial job is added */
+#define SERIAL_INITIAL_SIZE 10 /* initial number of possible serial job. If
+ * more jobs have to be in queue simultaneously,
+ * fcron will have to calloc() more memory */
+#define SERIAL_GROW_SIZE 10 /* this is the number of entries that will be
+ * added to serial queue each time it has to grow
+ * up */
+
+#define LAVG_QUEUE_MAX 30 /* if lavg queue contains this number of entries,
+ * the next lavg job to be executed will be run
+ * before a new lavg job is added */
+#define LAVG_INITIAL_SIZE 10 /* initial number of possible lavg job. If
+ * more jobs have to be in queue simultaneously,
+ * fcron will have to calloc() more memory */
+#define LAVG_GROW_SIZE 10 /* this is the number of entries that will be
+ * added to lavg queue each time it has to grow
+ * up */
+
+
#define MAXENTRIES 256 /* max lines in non-root fcrontabs */
#define LINE_LEN 1024 /* max line length in user's config file */
#define FNAME_LEN 512 /* max length of a file name */
#define USER_NAME_LEN 128 /* max length of a user name */
-#define ENV_LEN 50 /* max length of an env variable name */
+#define PATH_LEN 256 /* max length of a file path */
#define MAX_MSG 150 /* max length of a log message */
* during system boot */
/* *** behavior *** */
-#define SERIAL_QUEUE_MAX 30 /* if serial queue contains this number of entries,
- * the next serial job to be executed will be run
- * non-serially each time a serial job is added */
-#define SERIAL_INITIAL_SIZE 10 /* initial number of possible serial job. If
- * more jobs have to be in queue simultaneously,
- * fcron will have to calloc() more memory */
-#define SERIAL_GROW_SIZE 10 /* this is the number of entries that will be
- * added to serial queue each time it has to grow
- * up */
-#define SERIAL_ONCE 1 /* can a job be several times in the serial queue at
+#define SERIAL_ONCE 0 /* can a job be several times in the serial queue at
* the same moment ? */
+#define LAVG_ONCE 1 /* can a job be several times in the lavg queue at
+ * the same moment ? */
+
+#define LAVG_SLEEP 30 /* the time we sleep when some jobs are in lavg queue */
/* Syslog facility and priorities messages will be logged to (see syslog(3)) */