2015-09-07 11:18:44 -07:00
|
|
|
[Unit]
|
|
|
|
|
Description=Cloudron Janitor
|
|
|
|
|
OnFailure=crashnotifier@%n.service
|
|
|
|
|
StopWhenUnneeded=true
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=idle
|
|
|
|
|
WorkingDirectory=/home/yellowtent/box
|
|
|
|
|
Restart=always
|
2015-09-10 19:18:02 -07:00
|
|
|
ExecStart=/usr/bin/node --optimize_for_size --max_semi_space_size=5 --max_old_space_size=30 /home/yellowtent/box/janitor.js
|
2015-09-07 11:18:44 -07:00
|
|
|
Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box*,connect-lastmile" "BOX_ENV=cloudron" "NODE_ENV=production"
|
|
|
|
|
KillMode=process
|
|
|
|
|
User=yellowtent
|
|
|
|
|
Group=yellowtent
|
2015-09-07 14:49:39 -07:00
|
|
|
MemoryLimit=50M
|
2015-09-07 11:18:44 -07:00
|
|
|
|