fold janitor into main box code cron job
the volume cleaner will now also come into janitor
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
@@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=Cloudron Janitor
|
||||
StopWhenUnneeded=true
|
||||
|
||||
[Timer]
|
||||
# this activates it immediately
|
||||
OnBootSec=0
|
||||
OnUnitActiveSec=30min
|
||||
Unit=janitor.service
|
||||
|
||||
Reference in New Issue
Block a user