>>>>> "BC" == Brent Chapman <Brent@GreatCircle.COM> writes:
BC> Right idea, but not an ideal implementation.
Brent is correct. See, public review of patches works. Also, don't write
patches in the ten minutes before you're due in class. A revised patch:
--- sample.cf.orig Mon Nov 18 14:12:48 1996
+++ sample.cf Thu Nov 21 16:10:25 1996
@@ -72,6 +72,20 @@
#
# $config'default_subscribe_policy = "open+confirm";
+# You can force Majordomo to delay any processing if the system load is too
+# high by doing something like the following (the exact method is
+# system-dependent, but this works in most cases):
+#$max_loadavg = 10; # Choose the maximum allowed load
+#$uptime = `/usr/bin/uptime`; # Get system uptime
+#$uptime =~ s/,/ /g; # Remove commas
+#@uptime = split(/\s+/,$uptime); # Split into parts
+#$loadavg = $uptime[$#uptime - 0]; # use 0 for 15 minute average,
+# # 1 for 5 minute average,
+# # 2 for 1 minute average.
+#if ($loadavg >= $max_loadavg) {
+# exit 75; # E_TEMPFAIL
+#}
+
#
# Configure X400 parsing here. This is functional, but not well tested
# and rather a hack.
- J<
References:
|
|