How to restart the pds_server.log
- Article Type: General
- Product: Aleph
- Product Version: 20, 21, 22, 23
Description:
We notice that while most of the logs in the log directory rotate when Aleph is restarted, the PDS log does not. It accumulates forever. Is there a way to get the PDS log to rotate like the others?
Resolution:
1) Create a file $alephe_proc/start_pds_log.csh with the contents:
set LOG = $LOGDIR/pds_server.log
if ( -f $LOG ) then
mv $LOG $LOG.`date '+%Y%d%m.%H%M'`
endif
find $LOGDIR -name "pds_server.log.2*" -mtime +30 -exec rm -f {} \;
2) Edit $alephe_proc/www_server and after these two lines:
set logfile = "$LOGDIR/www_server_$1.log"
source $aleph_proc/rename_server_log
add a line:
csh -f $aleph_proc/start_pds_log.csh
although if you don't want to delete the files older than 30 days you could also just do the following:
1) Edit $alephe_proc/www_server and after these two lines:
set logfile = "$LOGDIR/www_server_$1.log"
source $aleph_proc/rename_server_log
add two lines:
set logfile = "$LOGDIR/pds_server.log"
source $aleph_proc/rename_server_log
One thing to keep in mind is that with a service pack or upgrade you'll need to check that $aleph_proc/www_server isn't updated. If it is, then you'll need to remake the changes.
- Article last edited: 12-Feb-2017
- Internal Notes: