aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-04-23 14:48:56 +0200
committerLudovic Courtès <ludo@gnu.org>2019-04-23 16:38:11 +0200
commit95ef8b85b16f19557ea07d0d0cbf856f85657368 (patch)
treef45f2e796bb1ce3de3be064e6a4ae74631f89626 /doc
parent9fb1ca080861c8418a1cc6710bf0dfef1ee77248 (diff)
downloadpatches-95ef8b85b16f19557ea07d0d0cbf856f85657368.tar
patches-95ef8b85b16f19557ea07d0d0cbf856f85657368.tar.gz
services: shepherd: Support one-shot services.
* gnu/services/shepherd.scm (<shepherd-service>)[one-shot?]: New field. (shepherd-service-file): Pass #:one-shot? to the <service> constructor. * doc/guix.texi (Shepherd Services): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 3ec1cf852a..955fd1f172 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -25124,6 +25124,12 @@ shepherd, The GNU Shepherd Manual}). @xref{Slots of services, the
@item @code{requirements} (default: @code{'()})
List of symbols denoting the Shepherd services this one depends on.
+@cindex one-shot services, for the Shepherd
+@item @code{one-shot?} (default: @code{#f})
+Whether this service is @dfn{one-shot}. One-shot services stop immediately
+after their @code{start} action has completed. @xref{Slots of services,,,
+shepherd, The GNU Shepherd Manual}, for more info.
+
@item @code{respawn?} (default: @code{#t})
Whether to restart the service when it stops, for instance when the
underlying process dies.