Updates and now enabled using daemon mode

This commit is contained in:
Deon George
2020-06-21 14:01:30 +10:00
parent 1e75b5fe05
commit adc38bc7d4
5 changed files with 54 additions and 7 deletions

12
init
View File

@@ -26,7 +26,11 @@ if [ -x /usr/sbin/zerotier-one -a -n "${ENABLE_ZT}" ]; then
/usr/sbin/zerotier-one -d
fi
# Start Supervisord
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
exec "$@"
if [ -n "$1" ]; then
echo "* Starting [$@]"
exec "$@"
else
# Start Supervisord
echo "* Starting supervisord"
exec /usr/bin/supervisord -nc /etc/supervisor/supervisord.conf
fi