mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Minor cleanup of README, comments, and whitespace
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user