From 6a9efa774d8a89dc1bbe3d0b63a83022b8bc2ccf Mon Sep 17 00:00:00 2001 From: Ahmad Sherif Date: Fri, 30 May 2014 18:55:26 +0300 Subject: [PATCH] Create /var/log/nginx before running mkfifo --- nginx/templates/upstart-logger.jinja | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/templates/upstart-logger.jinja b/nginx/templates/upstart-logger.jinja index 24d08be..9dc2cb8 100644 --- a/nginx/templates/upstart-logger.jinja +++ b/nginx/templates/upstart-logger.jinja @@ -8,6 +8,7 @@ respawn pre-start script if [ ! -r /var/log/nginx/{{ type }}.fifo ]; then + mkdir -p /var/log/nginx mkfifo /var/log/nginx/{{ type }}.fifo chown root.root /var/log/nginx/{{ type }}.fifo chmod 660 /var/log/nginx/{{ type }}.fifo