Commit 07ff8b55 authored by Hadrien's avatar Hadrien
Browse files

force symlink in llng and wp images to allow restarting containers

parent 3d99e590
......@@ -5,11 +5,11 @@ set -e
if [ "$1" = "nginx" ]
then
ln -s /dev/stdout /var/log/nginx/access.log
ln -s /dev/stdout /var/log/nginx/error.log
ln -s /dev/stdout /var/log/nginx/manager-api.log
ln -s /dev/stdout /var/log/nginx/manager.log
ln -s /dev/stdout /var/log/nginx/portal.log
ln -sf /dev/stdout /var/log/nginx/access.log
ln -sf /dev/stdout /var/log/nginx/error.log
ln -sf /dev/stdout /var/log/nginx/manager-api.log
ln -sf /dev/stdout /var/log/nginx/manager.log
ln -sf /dev/stdout /var/log/nginx/portal.log
/usr/sbin/nginx -g 'daemon off;'
elif [ "$1" = "llng-fastcgi-server" ]
then
......
......@@ -10,15 +10,15 @@ cp /usr/share/white-pages/config.inc.php /usr/share/white-pages/conf/config.inc.
if [ "$1" = "nginx" ]
then
ln -s /dev/stdout /var/log/nginx/access.log
ln -s /dev/stdout /var/log/nginx/error.log
ln -s /dev/stdout /var/log/nginx/wp.access.log
ln -s /dev/stdout /var/log/nginx/wp.error.log
ln -sf /dev/stdout /var/log/nginx/access.log
ln -sf /dev/stdout /var/log/nginx/error.log
ln -sf /dev/stdout /var/log/nginx/wp.access.log
ln -sf /dev/stdout /var/log/nginx/wp.error.log
/usr/sbin/nginx -g 'daemon off;'
elif [ "$1" = "php-fpm" ]
then
ln -s /dev/stdout /var/log/php-fpm/error.log
ln -s /dev/stdout /var/log/php-fpm/www-error.log
ln -sf /dev/stdout /var/log/php-fpm/error.log
ln -sf /dev/stdout /var/log/php-fpm/www-error.log
/usr/sbin/php-fpm --nodaemonize
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment