fold janitor into main box code cron job

the volume cleaner will now also come into janitor
This commit is contained in:
Girish Ramakrishnan
2015-10-14 22:34:00 -07:00
parent ec895a4f31
commit 7f29eed326
7 changed files with 71 additions and 102 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
Description=Cloudron Smart Cloud
Documentation=https://cloudron.io/documentation.html
StopWhenUnneeded=true
Requires=box.service janitor.timer docker_janitor.timer
After=box.service janitor.timer docker_janitor.timer
Requires=box.service docker_janitor.timer
After=box.service docker_janitor.timer
# AllowIsolate=yes
[Install]
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=Cloudron Janitor
OnFailure=crashnotifier@%n.service
[Service]
Type=simple
WorkingDirectory=/home/yellowtent/box
Restart=no
ExecStart=/usr/bin/node /home/yellowtent/box/janitor.js
Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production"
KillMode=process
User=yellowtent
Group=yellowtent
MemoryLimit=50M
WatchdogSec=30
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=Cloudron Janitor
StopWhenUnneeded=true
[Timer]
# this activates it immediately
OnBootSec=0
OnUnitActiveSec=30min
Unit=janitor.service