Files
cloudron-box/setup/start/systemd/box.service
T

30 lines
1.1 KiB
Desktop File
Raw Normal View History

2015-09-07 11:18:44 -07:00
[Unit]
Description=Cloudron Admin
2017-01-25 11:28:27 -08:00
After=mysql.service nginx.service
2016-12-30 11:27:00 -08:00
; As cloudron-resize-fs is a one-shot, the Wants= automatically ensures that the service *finishes*
Wants=cloudron-resize-fs.service
2015-09-07 11:18:44 -07:00
2020-08-01 20:00:20 -07:00
[Install]
WantedBy=multi-user.target
2015-09-07 11:18:44 -07:00
[Service]
Type=idle
WorkingDirectory=/home/yellowtent/box
Restart=always
2020-08-04 09:34:03 -07:00
ExecStart=/home/yellowtent/box/box.js
ExecReload=/bin/kill -HUP $MAINPID
; we run commands like df which will parse properly only with correct locale
2023-08-04 09:21:48 +05:30
Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box:*,connect-lastmile,-box:ldap" "BOX_ENV=cloudron" "NODE_ENV=production" "LC_ALL=C" "AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1"
2016-01-21 17:40:41 -08:00
; kill apptask processes as well
KillMode=control-group
; Do not kill this process on OOM. Children inherit this score. Do not set it to -1000 so that MemoryMax can keep working
OOMScoreAdjust=-999
2015-09-07 11:18:44 -07:00
User=yellowtent
Group=yellowtent
2019-01-17 09:20:31 -08:00
; OOM killer is invoked in this unit beyond this. The start script replaces this with MemoryLimit for Ubuntu 16
MemoryMax=400M
TimeoutStopSec=5s
StartLimitInterval=1
StartLimitBurst=60
2015-09-07 11:18:44 -07:00