...
| Code Block |
|---|
/var/log/nuxeo/server.log /var/lib/casebrowser/logs/casebrowser.log |
Clean up cron job
The clean up cron job should be added to the cron on host of container.
Example:
| Code Block | ||
|---|---|---|
| ||
0 2 * * * /opt/dms_cleanup.sh |
Script:
Don't forget to set correct container name in the last line. Be sure to give all the needed permissions to execute the script
| Code Block | ||
|---|---|---|
| ||
#!/bin/bash
# Define DATEVAR
DATEVAR=$(date +"%y%m%d%H%M")
cd
/usr/bin/logger "dms_cleanup.sh[$$] - Begin cleaning tmp directories"
echo "--------------------"
echo $(date -u) "delete any tmp files that are more than 7 days old"
docker exec -ti %NuxeoContainerName% /usr/bin/find /var/lib/nuxeo/server/tmp /var/log/nuxeo -type f -a -ctime +7 -print -delete |
Restarting containers and services
...