Add docker volumes janitor

This cleans up tmp and logrotates /var/log every 12 hours.

Note that this janitor is separate from the box janitor because they
run as different users.

Fixes #503
This commit is contained in:
Girish Ramakrishnan
2015-10-14 12:54:47 -07:00
parent c154f342c2
commit 3fc0a96bb0
5 changed files with 79 additions and 2 deletions

View File

@@ -2,8 +2,8 @@
Description=Cloudron Smart Cloud
Documentation=https://cloudron.io/documentation.html
StopWhenUnneeded=true
Requires=box.service janitor.timer
After=box.service janitor.timer
Requires=box.service janitor.timer docker_janitor.timer
After=box.service janitor.timer docker_janitor.timer
# AllowIsolate=yes
[Install]