Skip to content

Instantly share code, notes, and snippets.

@yllan
Last active October 7, 2015 07:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yllan/3128803 to your computer and use it in GitHub Desktop.
Save yllan/3128803 to your computer and use it in GitHub Desktop.
Maintenance Script
# Build Golem
sbt assembly
# Run golem as daemon
nohup java -jar target/Golem-assembly-1.0.jar </dev/null &
ps -ax | grep Calendar | awk '{ print "kill " $1 }' | sh
find . -type f -mtime +45 -delete
# 45 days
find . -type d -empty -exec rmdir {} \;
# Remove empty directories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment