mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +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
2 files changed
+7
-10
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;
|
||||||
|
|||||||
Reference in new issue
Block a user