2015-09-07 11:18:44 -07:00
|
|
|
[Unit]
|
|
|
|
|
Description=Cloudron Admin
|
|
|
|
|
OnFailure=crashnotifier@%n.service
|
|
|
|
|
StopWhenUnneeded=true
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=idle
|
|
|
|
|
WorkingDirectory=/home/yellowtent/box
|
|
|
|
|
Restart=always
|
2015-09-14 10:43:47 -07:00
|
|
|
ExecStart=/usr/bin/node --max_old_space_size=150 /home/yellowtent/box/box.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"
|
2016-01-21 17:40:41 -08:00
|
|
|
; kill apptask processes as well
|
|
|
|
|
KillMode=control-group
|
2015-09-07 11:18:44 -07:00
|
|
|
User=yellowtent
|
|
|
|
|
Group=yellowtent
|
2015-09-07 20:48:29 -07:00
|
|
|
MemoryLimit=200M
|
2015-09-07 20:58:14 -07:00
|
|
|
TimeoutStopSec=5s
|
2015-12-12 13:14:50 -08:00
|
|
|
StartLimitInterval=1
|
|
|
|
|
StartLimitBurst=60
|
2015-09-07 11:18:44 -07:00
|
|
|
|