add missing poll logrotate
This commit is contained in:
parent
003b29e5c4
commit
1951cb234e
10
dbp/Event-Editor.txt
Normal file
10
dbp/Event-Editor.txt
Normal file
@ -0,0 +1,10 @@
|
||||
Active | Description | Event Type | Exec Hour:Min | Shell | Prefix | Semaphore | Kill-After | Warning | SMTWTFS
|
||||
-------+--------------------------------+------------+---------------+--------------------------------------------------+--------+--------------------------+--------------------------+---------+--------
|
||||
Yes | Daily Tasks | Shell | 00:00 | cron -f dbp.ini | Yes | | | 0 | SMTWTFS
|
||||
Yes | Nightly Maintenance | Shell | 04:00 | mutil maint.ini | Yes | | | 0 | SMTWTFS
|
||||
Yes | Firewall Ban | IP Blocked | 00:00 | banunban -f dbp.ini -d banip -i @IP@ | Yes | | | 0 | -------
|
||||
Yes | Sending Outbound Echo/Net Mail | Semaphore | 00:00 | mutil mailout.ini|mis poll send|mutil mailin.ini | Yes | echomail.out|netmail.out | echomail.out|netmail.out | 0 | -------
|
||||
Yes | Toss Incomming Echo/Net Mail | Semaphore | 00:00 | mutil mailin.ini | Yes | echomail.in|netmail.in | echomail.in|netmail.in | 0 | -------
|
||||
Yes | Poll Echomail | Inteval | 01:05 | mis poll forced|mutil mailin.ini | Yes | | | | SMTWTFS
|
||||
|
||||
|
11
dbp/cron.sh
11
dbp/cron.sh
@ -24,6 +24,9 @@ TMP_DIR=$(mktemp -d)
|
||||
MIS_ENABLE=`${MYSTIC_DIR}/inimod r ${INIFILE} -S GeneralDbP -k MisLog --silent`
|
||||
MIS_KEEP=`${MYSTIC_DIR}/inimod r ${INIFILE} -S MisLog -k RetentionTime --silent`
|
||||
|
||||
POLL_ENABLE=`${MYSTIC_DIR}/inimod r ${INIFILE} -S GeneralDbP -k PollLog --silent`
|
||||
POLL_KEEP=`${MYSTIC_DIR}/inimod r ${INIFILE} -S PollLog -k RetentionTime --silent`
|
||||
|
||||
MUTIL_ENABLE=`${MYSTIC_DIR}/inimod r ${INIFILE} -S GeneralDbP -k MutilLog --silent`
|
||||
MUTIL_KEEP=`${MYSTIC_DIR}/inimod r ${INIFILE} -S MutilLog -k RetentionTime --silent`
|
||||
|
||||
@ -54,6 +57,14 @@ if [ $MIS_ENABLE = "true" ]; then
|
||||
find ${MYSTIC_DIR}/logs/ -type f -mtime +${MIS_KEEP} -name 'mis.*' -exec rm {} \;
|
||||
fi
|
||||
|
||||
if [ $POLL_ENABLE = "true" ]; then
|
||||
touch ${MYSTIC_DIR}/logs/poll.${NOW}.log
|
||||
touch ${MYSTIC_DIR}/logs/poll.${TOMORROW}.log
|
||||
ln -sf poll.${NOW}.log ${MYSTIC_DIR}/logs/poll.log
|
||||
[ -f /${MYSTIC_DIR}/logs/poll.${YESTERDAY}.log ] && gzip -9 ${MYSTIC_DIR}/logs/poll.${YESTERDAY}.log
|
||||
find ${MYSTIC_DIR}/logs/ -type f -mtime +${POLL_KEEP} -name 'poll.*' -exec rm {} \;
|
||||
fi
|
||||
|
||||
if [ $MUTIL_ENABLE = "true" ]; then
|
||||
touch ${MYSTIC_DIR}/logs/mutil.${NOW}.log
|
||||
touch ${MYSTIC_DIR}/logs/mutil.${TOMORROW}.log
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
Ip2Location=false
|
||||
MisLog=false
|
||||
PollLog=false
|
||||
ErrorLog=false
|
||||
NodeLog=false
|
||||
MutilLog=false
|
||||
@ -24,6 +25,10 @@ Database=DB1LITEBIN
|
||||
; Set maximum days of logs to keep for the Mis Daemon
|
||||
RetentionTime=7
|
||||
|
||||
[PollLog]
|
||||
; Set maximum days of logs to keep for the Mis Poll
|
||||
RetentionTime=7
|
||||
|
||||
[ErrorLog]
|
||||
; Set maximum days of logs to keep for the Error Log
|
||||
RetentionTime=7
|
||||
|
Loading…
Reference in New Issue
Block a user