From 58724c488b17cf2babfadebf790396426f3a801f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 2 Aug 2015 23:29:53 -0400 Subject: gnu: services: Add nginx-service. * gnu/services/web.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. * guix.texi ("Web Services"): New section. --- doc/guix.texi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'doc/guix.texi') diff --git a/doc/guix.texi b/doc/guix.texi index 88e1ff7f77..2973411beb 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -5592,6 +5592,7 @@ declaration. * X Window:: Graphical display. * Desktop Services:: D-Bus and desktop services. * Database Services:: SQL databases. +* Web Services:: Web servers. * Various Services:: Other services. @end menu @@ -6111,6 +6112,26 @@ The PostgreSQL daemon loads its runtime configuration from @var{data-directory}. @end deffn +@node Web Services +@subsubsection Web Services + +The @code{(gnu services web)} module provides the following service: + +@deffn {Monadic Procedure} nginx-service [#:nginx nginx] @ + [#:log-directory ``/var/log/nginx''] @ + [#:run-directory ``/var/run/nginx''] @ + [#:config-file] + +Return a service that runs @var{nginx}, the nginx web server. + +The nginx daemon loads its runtime configuration from @var{config-file}. +Log files are written to @var{log-directory} and temporary runtime data +files are written to @var{run-directory}. For proper operation, these +arguments should match what is in @var{config-file} to ensure that the +directories are created when the service is activated. + +@end deffn + @node Various Services @subsubsection Various Services -- cgit v1.2.3