Log Supervisor to file and mount the /var/log from host to the supervisor

This commit is contained in:
Praneeth Bodduluri 2014-12-29 13:10:06 +01:00 committed by Pablo Carranza Vélez
parent b584c6b705
commit 497ecc90a8
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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'
]