Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
reloaded:is_cantsafresh [2019/01/16 17:38] giancarlo |
reloaded:is_cantsafresh [2019/01/16 17:46] giancarlo |
> log.access.RollingFileAppender.TimeBasedRollingPolicy.filename_pattern = /srv/log/access-%d{yyyy-MM-dd}.log | > log.access.RollingFileAppender.TimeBasedRollingPolicy.filename_pattern = /srv/log/access-%d{yyyy-MM-dd}.log |
| |
</code> | |
</WRAP> | |
* Clear cache on daily basis by HTTP API | |
<WRAP prewrap center> | |
<code> | |
crontab -l | |
| |
00 23 * * * /root/purge.sh >> /root/purge.log 2>&1 | |
</code> | |
</WRAP> | |
<WRAP prewrap center> | |
<code> | |
cat /root/purge.sh | |
| |
# <= 3.4 | |
#cd /opt/cantaloupe | |
#sudo -u cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -Dcantaloupe.cache.purge -jar Cantaloupe-3.4.1.war | |
# | |
# >= 3.4 | |
wget -q --server-response --user=MyEndpointApiUsername --password=MyEndpointApiSecret --post-data='{ "verb" : "PurgeCache" }' --header=Content-Type:application/json http://localhost:8182/tasks | |
</code> | |
</WRAP> | |
* Startup command (replaced by start as service) | |
<WRAP prewrap center> | |
<code> | |
cd /opt/cantaloupe-4.0/ | |
| |
sudo -u cantaloupe nohup java -Dcantaloupe.config=/opt/cantaloupe-4.0/cantaloupe.properties -Xmx12g -jar cantaloupe-4.0.war & | |
</code> | </code> |
</WRAP> | </WRAP> |
Type=simple | Type=simple |
User=cantaloupe | User=cantaloupe |
ExecStart=/usr/bin/java -Dcantaloupe.config=/opt/cantaloupe-4.0/cantaloupe.properties -Xmx12g -jar /opt/cantaloupe-4.0/cantaloupe-4.0.war | ExecStart=/usr/bin/java -Dcantaloupe.config=/opt/cantaloupe-4.0.3/cantaloupe.properties -Xmx12g -jar /opt/cantaloupe-4.0.3/cantaloupe-4.0.3.war |
ExecStop=/usr/bin/killall -9 cantaloupe-4.0.war | ExecStop=/usr/bin/killall -9 cantaloupe-4.0.3.war |
Restart=on-failure | Restart=on-failure |
| |
</code> | </code> |
</WRAP> | </WRAP> |
| * Startup command (alternative to start as service) |
| <WRAP prewrap center> |
| <code> |
| cd /opt/cantaloupe-4.0.3/ |
| |
| sudo -u cantaloupe nohup java -Dcantaloupe.config=/opt/cantaloupe-4.0.3/cantaloupe.properties -Xmx12g -jar cantaloupe-4.0.3.war & |
| </code> |
| </WRAP> |
| * Clear cache on daily basis by HTTP API (Optional) |
| <WRAP prewrap center> |
| <code> |
| crontab -l |
| |
| 00 23 * * * /root/purge.sh >> /root/purge.log 2>&1 |
| </code> |
| </WRAP> |
| <WRAP prewrap center> |
| <code> |
| cat /root/purge.sh |
| |
| # <= 3.4 |
| #cd /opt/cantaloupe |
| #sudo -u cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -Dcantaloupe.cache.purge -jar Cantaloupe-3.4.1.war |
| # |
| # >= 3.4 |
| wget -q --server-response --user=MyEndpointApiUsername --password=MyEndpointApiSecret --post-data='{ "verb" : "PurgeCache" }' --header=Content-Type:application/json http://localhost:8182/tasks |
| </code> |
| </WRAP> |
| |
| |
| |