3 read pid cmd state ppid pgrp session tty_nr tpgid rest < /proc/self/stat
4 trap "kill -TERM -$pgrp; exit" EXIT TERM KILL SIGKILL SIGTERM SIGQUIT
6 # Start ssh daemon if requested via the ENABLE_SSH env variable
7 if [[ ! "$ENABLE_SSH" =~ (0|false|no|f|^$) ]]; then
11 # Override the default API server address if necessary.
12 if [[ "$API_PORT_443_TCP_ADDR" != "" ]]; then
13 sed -i "s/localhost:9900/$API_PORT_443_TCP_ADDR/" /usr/src/arvados/apps/workbench/config/application.yml
16 source /etc/apache2/envvars
17 /usr/sbin/apache2 -D FOREGROUND