mirror of
https://github.com/troglobit/finit.git
synced 2026-11-14 19:03:16 +00:00
Minor cleanup of README, comments, and whitespace
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
e38eb7cbd5
commit
5c672885f1
3 files changed
+10
-13
No files matched your search
@@ -146,11 +146,11 @@ e.g. <kbd>init 4</kbd>, but also using the more advanced `intictl` tool.
|
|||||||
|
|
||||||
**Plugins**
|
**Plugins**
|
||||||
|
|
||||||
Plugins can be used to *extend* the functionality of Finit, *hook into*
|
Plugins can *extend* the functionality of Finit and *hook into* the
|
||||||
different stages of the boot process and at runtime, and act as *pure
|
different stages of the boot process and at runtime. Plugins are
|
||||||
extensions*. Plugins are written in C and compiled into a dynamic
|
written in C and compiled into a dynamic library loaded automatically by
|
||||||
library that is loaded automatically by finit at boot. A basic set of
|
finit at boot. A basic set of plugins are bundled in the `plugins/`
|
||||||
plugins are bundled in the `plugins/` directory.
|
directory.
|
||||||
|
|
||||||
Capabilities:
|
Capabilities:
|
||||||
|
|
||||||
|
|||||||
@@ -340,16 +340,13 @@ static void parse_dynamic(char *line, time_t mtime)
|
|||||||
if (MATCH_CMD(line, "#", x))
|
if (MATCH_CMD(line, "#", x))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Monitored daemon, will be respawned on exit, as
|
/* Monitored daemon, will be respawned on exit */
|
||||||
* long as the (optional) service callback returns
|
|
||||||
* non-zero */
|
|
||||||
if (MATCH_CMD(line, "service ", x)) {
|
if (MATCH_CMD(line, "service ", x)) {
|
||||||
service_register(SVC_TYPE_SERVICE, x, mtime, NULL);
|
service_register(SVC_TYPE_SERVICE, x, mtime, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* One-shot task, will not be respawned. Only runs if
|
/* One-shot task, will not be respawned */
|
||||||
* the (optional) service callback returns true */
|
|
||||||
if (MATCH_CMD(line, "task ", x)) {
|
if (MATCH_CMD(line, "task ", x)) {
|
||||||
service_register(SVC_TYPE_TASK, x, mtime, NULL);
|
service_register(SVC_TYPE_TASK, x, mtime, NULL);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -34,10 +34,10 @@ int service_enabled (svc_t *svc);
|
|||||||
|
|
||||||
void service_reload_dynamic (void);
|
void service_reload_dynamic (void);
|
||||||
|
|
||||||
void service_step(svc_t *svc);
|
void service_step (svc_t *svc);
|
||||||
void service_step_all(int types);
|
void service_step_all (int types);
|
||||||
|
|
||||||
int service_stop_is_done(void);
|
int service_stop_is_done (void);
|
||||||
|
|
||||||
#endif /* FINIT_SERVICE_H_ */
|
#endif /* FINIT_SERVICE_H_ */
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user