Revert to using supervisord to launch notebook

Used to relaunch notebook and collect logging data.
This commit is contained in:
Carl Osterwisch
2015-08-28 10:43:32 -04:00
committed by Peter Parente
parent f2b7f38df6
commit 30932a3b12
3 changed files with 14 additions and 5 deletions

View File

@@ -12,8 +12,5 @@ if [ ! -z "$GRANT_SUDO" ]; then
echo "$NB_USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/notebook
fi
# Run Notebook server as $NB_USER
su -l $NB_USER << EOF
cd $WORK
jupyter notebook
EOF
# Start supervisord in foreground, PID1
exec supervisord -n -c /etc/supervisor/supervisord.conf