diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-04-30 11:51:12 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-05-01 09:57:03 +0200 |
commit | 5a10cd4736342160d93d2e1d5797b6cc6baebd0a (patch) | |
tree | 3cb380728d25e433e5067a4c4fea5250040b44dc /gnu/services | |
parent | 0f4740f4fadc83227de6ec73997ecf42ba7323e9 (diff) | |
download | guix-5a10cd4736342160d93d2e1d5797b6cc6baebd0a.tar guix-5a10cd4736342160d93d2e1d5797b6cc6baebd0a.tar.gz |
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.
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/web.scm | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ of index files." (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 |