Minor cleanup of README, comments, and whitespace

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