aboutsummaryrefslogtreecommitdiffstats
path: root/doc/man
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-30 16:26:31 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-30 16:26:31 +0100
commitdb28a59d9e258dbb31dd3a6f2fb5cabb008bd3c6 (patch)
tree05ac5a400d218ee7df3fec7a38a9825fb78a20a7 /doc/man
parentm (diff)
downloadsat-db28a59d9e258dbb31dd3a6f2fb5cabb008bd3c6.tar.gz
sat-db28a59d9e258dbb31dd3a6f2fb5cabb008bd3c6.tar.bz2
sat-db28a59d9e258dbb31dd3a6f2fb5cabb008bd3c6.tar.xz
satd(1): hooks
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'doc/man')
-rw-r--r--doc/man/satd.136
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/man/satd.1 b/doc/man/satd.1
index eab8f01..3875b4f 100644
--- a/doc/man/satd.1
+++ b/doc/man/satd.1
@@ -10,6 +10,42 @@ shall start the
.B sat
daemon, which is used for automatically executing jobs
queued for later execution.
+.PP
+Before a job is executed,
+.BR satd (1)
+will run the hook script if available, the hook action
+will either be
+.TP
+.B expired
+if the job run when scheduled to run, or
+.TP
+.B forced
+if
+.BR satr (1)
+was used to run the job early.
+.PP
+After the job has run, the hook script is run again,
+and is made sure that the hook script is not run any
+time between these two runs. This time, the action is
+either
+.TP
+.B failure
+if the job was not executed successfully, including if
+the job exited with any status other than zero, or
+.B success
+if the job was executed successfully and exited with
+status zero.
+.PP
+When a job is removed using
+.BR satrm (1),
+the hook script is run with the action
+.BR removed .
+.PP
+When the hook script runs, the first argument (not
+counting the zeroth argument: the pathname of hook
+script) is the action, the follow arguments is the
+command line of the job. The environment will be set
+to be identical to that of the job.
.SH OPTIONS
.TP
.B \-f