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"
|
|
|
|
|
KillMode=process
|
|
|
|
|
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-09-07 11:18:44 -07:00
|
|
|
|