mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-24 04:55:42 +00:00
Log Supervisor to file and mount the /var/log from host to the supervisor
This commit is contained in:
parent
b584c6b705
commit
497ecc90a8
2
entry.sh
2
entry.sh
@ -15,4 +15,4 @@ if [ -d "$DATA_DIRECTORY" ]; then
|
||||
chmod +x $DATA_DIRECTORY/enter.sh
|
||||
fi
|
||||
|
||||
exec node src/supervisor.js
|
||||
exec node src/supervisor.js &> /var/log/supervisor.log
|
||||
|
@ -38,4 +38,5 @@ config.supervisorContainer =
|
||||
'/var/run/docker.sock:/run/docker.sock'
|
||||
'/resin-data/resin-supervisor:/data'
|
||||
'/proc/net/fib_trie:/mnt/fib_trie'
|
||||
'/var/log/supervisor-log:/var/log'
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user