mirror of
https://github.com/troglobit/finit.git
synced 2026-10-25 12:04:36 +00:00
Fix #278: enforce conditions also for running pre: scripts
The whole point of pre: scripts is that they run just before the actual run/task/service process, hence they need to be locked behind the same conditions as the process. Otherwise pre: scripts would be nothing more than plain tasks. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
d9dbfa23c7
commit
fbcd7d2384
2 files changed
+29
-19
No files matched your search
@@ -63,6 +63,7 @@ typedef enum {
|
||||
SVC_SETUP_STATE, /* Running pre: script */
|
||||
SVC_WAITING_STATE, /* Condition is in flux, process SIGSTOPed */
|
||||
SVC_READY_STATE, /* Enabled but condition not satisfied */
|
||||
SVC_STARTING_STATE, /* Conditions OK and pre: script done, start */
|
||||
SVC_RUNNING_STATE, /* Process running */
|
||||
} svc_state_t;
|
||||
|
||||
|
||||
Reference in new issue
Block a user