55 rick 1.2 cat /dev/null > $SUMRM_CONFIG
56 if ($status) then
57 echo "Error: either the directory $SUMS_LOG_BASEDIR does not exist, or"
58 echo " you do not have write permission in it; the directory should be"
59 echo " created or made writeable, and this script run by user $SUMS_MANAGER"
60 exit
61 endif
62
|
63 rick 1.1 echo "# configuration file for sum_rm program" >> $SUMRM_CONFIG
64 echo "#" >> $SUMRM_CONFIG
65 echo "# You may edit this file any time, it is read each time sum_rm is run," >> $SUMRM_CONFIG
66 echo "# which will occur at the intervals specified by the SLEEP parameter" >> $SUMRM_CONFIG
67 echo "#" >> $SUMRM_CONFIG
68 echo "# when sum_rm finishes, sleep for n seconds before re-running" >> $SUMRM_CONFIG
69 echo "SLEEP=3600" >> $SUMRM_CONFIG
70 echo "# delete until this many Megabytes are free on the specified SUMS disk" >> $SUMRM_CONFIG
71 echo "# partitions (one entry, numbered 0-n, for each partition" >> $SUMRM_CONFIG
72 echo "MAX_FREE_0=100000" >> $SUMRM_CONFIG
73 echo "# name of the log file (opened at startup; date and pid are appended to this" >> $SUMRM_CONFIG
74 echo "# name); do not change the directory without changing SUMS_LOG_BASEDIR in" >> $SUMRM_CONFIG
75 echo "# the config.local and rebuilding sums" >> $SUMRM_CONFIG
76 echo "LOG=$SUMS_LOG_BASEDIR/sum_rm.log" >> $SUMRM_CONFIG
77 echo "# whom to bother when there's a notable problem" >> $SUMRM_CONFIG
78 echo "MAIL=$SUMS_MANAGER" >> $SUMRM_CONFIG
79 echo "# to prevent sum_rm from doing anything set non-zero (for testing)" >> $SUMRM_CONFIG
80 echo "NOOP=0" >> $SUMRM_CONFIG
81 echo "# sum_rm can only be enabled for a single user" >> $SUMRM_CONFIG
82 echo "USER=$SUMS_MANAGER" >> $SUMRM_CONFIG
83 echo "# dont run sum_rm between these NORUN hours of the day (0-23)" >> $SUMRM_CONFIG
84 rick 1.1 echo "# comment out to ignore or set them both to the same hour" >> $SUMRM_CONFIG
85 echo "# The NORUN_STOP must be >= NORUN_START" >> $SUMRM_CONFIG
86 echo "# dont run when the hour first hits NORUN_START" >> $SUMRM_CONFIG
87 echo "NORUN_START=7" >> $SUMRM_CONFIG
88 echo "# start running again when the hour first hits NORUN_STOP" >> $SUMRM_CONFIG
89 echo "NORUN_STOP=7" >> $SUMRM_CONFIG
90
91 echo "A sum_rm.cf configuration file with default values has been generated"
92 echo " in $SUMS_LOG_BASEDIR"
93 echo "Review and edit the values as appropriate; in particular, if there is"
94 echo " more than one SUMS disk partition, add the appropriate number of"
95 echo " MAX_FREE_n lines and values"
|