Welcome to mirror list, hosted at ThFree Co, Russian Federation.

run-lamp.sh « docker - github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 885b616eb965cb95596a1fa3baba1760014301c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

cleanup()
{
  apachectl graceful-stop
  killall php-fpm7.0
  mysqladmin -u root -pownyourbits shutdown
  killall cron
  echo "Cleanup complete"
}

trap cleanup SIGTERM

echo "Starting PHP-fpm"
php-fpm7.0 &

echo "Starting Apache"
/usr/sbin/apache2ctl start

echo "Starting mariaDB"
mysqld &

echo "Starting cron"
cron

echo "Done"
while true; do sleep 0.5; done # do nothing, just wait for trap from 'docker stop'