[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 03/05: doc: Clarify the execution environment for the ‘timer’
From: |
Ludovic Courtès |
Subject: |
[shepherd] 03/05: doc: Clarify the execution environment for the ‘timer’ service. |
Date: |
Fri, 22 Nov 2024 09:35:13 -0500 (EST) |
civodul pushed a commit to branch main
in repository shepherd.
commit d5cf85f42670883ef19094c23d1c10aeed53cdc0
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Nov 22 10:54:34 2024 +0100
doc: Clarify the execution environment for the ‘timer’ service.
* doc/shepherd.texi (Timers): For the ‘timer’ service, clarify the
execution environment.
---
doc/shepherd.texi | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/shepherd.texi b/doc/shepherd.texi
index 5cb703b..503129d 100644
--- a/doc/shepherd.texi
+++ b/doc/shepherd.texi
@@ -1535,7 +1535,11 @@ herd schedule timer at 07:00 as charlie -- \
Each of these @command{herd schedule timer} commands creates a new timed
service, which, like any other service, can be inspected and stopped;
those services are transient and vanish after they have executed their
-command (@pxref{Defining Services}).
+command (@pxref{Defining Services}). The command runs from the
+directory specified by @code{default-service-directory} and with the
+environment variables in @code{default-environment-variables}, augmented
+with @env{HOME} when running as a different user (the @code{as} keyword
+in the example above).
This @code{timer} service can be added to your configuration like so:
- [shepherd] branch main updated (49f5330 -> 550c037), Ludovic Courtès, 2024/11/22
- [shepherd] 02/05: system-log, timer: Add on-line documentation., Ludovic Courtès, 2024/11/22
- [shepherd] 03/05: doc: Clarify the execution environment for the ‘timer’ service.,
Ludovic Courtès <=
- [shepherd] 04/05: args: Use ‘report-error’ and ‘report-hint’., Ludovic Courtès, 2024/11/22
- [shepherd] 05/05: service: Honor dependencies among one-shot services., Ludovic Courtès, 2024/11/22
- [shepherd] 01/05: README: Update Guix channel spec., Ludovic Courtès, 2024/11/22