Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
reloaded:is_cantsafresh [2019/01/16 17:38]
giancarlo
reloaded:is_cantsafresh [2019/01/16 17:48]
giancarlo
Line 15: Line 15:
 </code> </code>
 </WRAP> </WRAP>
-  * Kakadu Native libraries+  * Kakadu Native libraries (Optional)
 <WRAP prewrap center> <WRAP prewrap center>
 <code> <code>
Line 170: Line 170:
 > 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>
Line 214: Line 186:
 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
  
Line 231: Line 203:
 </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>
  
  
  
 
 
reloaded/is_cantsafresh.txt · Last modified: 2019/01/16 17:57 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki