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 /doc/guix.texi | |
parent | 0f4740f4fadc83227de6ec73997ecf42ba7323e9 (diff) | |
download | patches-5a10cd4736342160d93d2e1d5797b6cc6baebd0a.tar patches-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 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 0d334e302f..957ce2bab3 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -13316,6 +13316,15 @@ used to specify the list of @dfn{server blocks} required on the host and blocks} to configure. For this to work, use the default value for @var{config-file}. +At startup, @command{nginx} has not yet read its configuration file, so it +uses a default file to log error messages. If it fails to load its +configuration file, that is where error messages are logged. After the +configuration file is loaded, the default error log file changes as per +configuration. In our case, startup error messages can be found in +@file{/var/run/nginx/logs/error.log}, and after configuration in +@file{/var/log/nginx/error.log}. The second location can be changed with the +@var{log-directory} configuration option. + @end deffn @deffn {Scheme Variable} nginx-service-type |