You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
486 B
13 lines
486 B
4 weeks ago
|
#!/bin/bash
|
||
|
# скрипт, используемый контейнером для запуска apache2 в фоновом режиме
|
||
|
|
||
|
echo "placeholder" > /var/moodledata/placeholder
|
||
|
chown -R www-data:www-data /var/moodledata
|
||
|
chmod 777 /var/moodledata
|
||
|
|
||
|
read pid cmd state ppid pgrp session tty_nr tpgid rest < /proc/self/stat
|
||
|
trap "kill -TERM -$pgrp; exit" EXIT TERM KILL SIGKILL SIGTERM SIGQUIT
|
||
|
|
||
|
source /etc/apache2/envvars
|
||
|
tail -F /var/log/apache2/* &
|
||
|
exec apachectl -D FOREGROUND
|