Last active
October 7, 2015 07:37
-
-
Save yllan/3128803 to your computer and use it in GitHub Desktop.
Maintenance Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build Golem | |
sbt assembly | |
# Run golem as daemon | |
nohup java -jar target/Golem-assembly-1.0.jar </dev/null & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -ax | grep Calendar | awk '{ print "kill " $1 }' | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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