replace debug() with our custom logger
mostly we want trace() and log(). trace() can be enabled whenever we want by flipping a flag and restarting box
This commit is contained in:
@@ -16,8 +16,7 @@ Restart=always
|
||||
ExecStart=/home/yellowtent/box/box.js
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
; we run commands like df which will parse properly only with correct locale
|
||||
; add "oidc-provider:*" to DEBUG for OpenID debugging
|
||||
Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box:*,-box:ldapserver,-box:directoryserver,-box:oidcserver" "BOX_ENV=cloudron" "NODE_ENV=production" "LC_ALL=C"
|
||||
Environment="HOME=/home/yellowtent" "USER=yellowtent" "BOX_ENV=cloudron" "NODE_ENV=production" "LC_ALL=C"
|
||||
; this sends the main process SIGTERM and then if anything lingers to the control-group . this is also the case if the main process crashes.
|
||||
; the box code handles SIGTERM and cleanups the tasks
|
||||
KillMode=mixed
|
||||
|
||||
@@ -5,7 +5,7 @@ After=network.target
|
||||
[Service]
|
||||
ExecStart=/home/yellowtent/box/syslog.js
|
||||
WorkingDirectory=/home/yellowtent/box
|
||||
Environment="NODE_ENV=production" "DEBUG=syslog:*" "BOX_ENV=cloudron"
|
||||
Environment="NODE_ENV=production" "BOX_ENV=cloudron"
|
||||
Restart=always
|
||||
User=yellowtent
|
||||
Group=yellowtent
|
||||
|
||||
Reference in New Issue
Block a user