From 5a10cd4736342160d93d2e1d5797b6cc6baebd0a Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sun, 30 Apr 2017 11:51:12 +0200 Subject: gnu: services: Create logs directory. * gnu/services/web.scm (nginx-activation): Create logs directory so nginx can log its startup messages before it loads its configuration. --- gnu/services/web.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gnu/services/web.scm') diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 47036f42f3..9f789707ef 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -237,6 +237,9 @@ (define nginx-activation (mkdir-p (string-append #$run-directory "/fastcgi_temp")) (mkdir-p (string-append #$run-directory "/uwsgi_temp")) (mkdir-p (string-append #$run-directory "/scgi_temp")) + ;; Start-up logs. Once configuration is loaded, nginx switches to + ;; log-directory. + (mkdir-p (string-append #$run-directory "/logs")) ;; Check configuration file syntax. (system* (string-append #$nginx "/sbin/nginx") "-c" #$(or config-file -- cgit v1.2.3