mirror of
https://github.com/troglobit/finit.git
synced 2026-11-22 20:01:46 +00:00
Follow-up #278: update documentation for pre:script
The pre:scripts no longer have to be idempotent. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
762bf5f031
commit
9d79673cea
2 files changed
-11
No files matched your search
@@ -488,10 +488,6 @@ These script actions *must terminate*, so they have a default execution
|
||||
time of 3 seconds before they are SIGKILLed, this can be adjusted using
|
||||
the above `kill:SEC` syntax.
|
||||
|
||||
> **Note:** the `pre:script` _must_ be idempotent, because a service
|
||||
> can transition between READY and HALTED states any number
|
||||
> of times before going to RUNNING.
|
||||
|
||||
|
||||
### Run-parts Scripts
|
||||
|
||||
|
||||
@@ -382,13 +382,6 @@ The scripts have a default execution time of 3 seconds before they are
|
||||
SIGKILLed, this can be adjusted using the
|
||||
.Cm kill:SEC
|
||||
modifier syntax.
|
||||
.Pp
|
||||
.Sy Note:
|
||||
the
|
||||
.Cm pre:script
|
||||
.Em must
|
||||
be idempotent, because a service can transition between READY and HALTED
|
||||
states any number of times before going to RUNNING.
|
||||
.It Cm runparts Aq DIR
|
||||
Call
|
||||
.Xr run-parts 8
|
||||
|
||||
Reference in new issue
Block a user