mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
Reindent to more 'pure' Markdown.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
291b22e987
commit
c2ea2c1193
1 file changed
+23
-26
@@ -50,10 +50,10 @@ for simple installations.
|
|||||||
Extend and modify finit behavior. See examples in plugins/ directory.
|
Extend and modify finit behavior. See examples in plugins/ directory.
|
||||||
Plugin capabilities:
|
Plugin capabilities:
|
||||||
|
|
||||||
* Service callbacks — modify service arguments, run/restart/stop
|
* Service callbacks -- modify service arguments, run/restart/stop
|
||||||
* Task/Run callbacks — a one-shot commands, executed in sequence
|
* Task/Run callbacks -- a one-shot commands, executed in sequence
|
||||||
* Hooks — hook into the boot at predefined points to extend finit
|
* Hooks -- hook into the boot at predefined points to extend finit
|
||||||
* I/O — listen to external events and control finit behavior/services
|
* I/O -- listen to external events and control finit behavior/services
|
||||||
|
|
||||||
Extensions and functionality not purely related to what an /sbin/init
|
Extensions and functionality not purely related to what an /sbin/init
|
||||||
needs to start a system are available as a set of plugins that either
|
needs to start a system are available as a set of plugins that either
|
||||||
@@ -91,8 +91,8 @@ finit reads its configuration from `/etc/finit.conf`. Syntax:
|
|||||||
* `run [LVLS] /path/to/cmd ARGS -- Optional description`
|
* `run [LVLS] /path/to/cmd ARGS -- Optional description`
|
||||||
|
|
||||||
One-shot command to run in sequence when entering a runlevel, with
|
One-shot command to run in sequence when entering a runlevel, with
|
||||||
optional arguments and description. This command is guaranteed to
|
optional arguments and description. This command is guaranteed to be
|
||||||
be completed before running the next command.
|
completed before running the next command.
|
||||||
|
|
||||||
* `task [LVLS] /path/to/cmd ARGS -- Optional description`
|
* `task [LVLS] /path/to/cmd ARGS -- Optional description`
|
||||||
|
|
||||||
@@ -100,10 +100,10 @@ finit reads its configuration from `/etc/finit.conf`. Syntax:
|
|||||||
|
|
||||||
* `service [LVLS] /path/to/daemon ARGS -- Optional description`
|
* `service [LVLS] /path/to/daemon ARGS -- Optional description`
|
||||||
|
|
||||||
Service, or daemon, to be monitored and automatically restarted if
|
Service, or daemon, to be monitored and automatically restarted if it
|
||||||
it exits prematurely. Please note that you often need to provide
|
exits prematurely. Please note that you often need to provide a
|
||||||
a --foreground or --no-background argument to most daemons to
|
--foreground or --no-background argument to most daemons to prevent
|
||||||
prevent them from forking off to the background.
|
them from forking off to the background.
|
||||||
|
|
||||||
* `runparts <PATH>`
|
* `runparts <PATH>`
|
||||||
|
|
||||||
@@ -111,9 +111,9 @@ finit reads its configuration from `/etc/finit.conf`. Syntax:
|
|||||||
|
|
||||||
* `include <CONF>`
|
* `include <CONF>`
|
||||||
|
|
||||||
Include another configuration file, ``/etc/finit.d``, or runparts
|
Include another configuration file, ``/etc/finit.d``, or runparts path
|
||||||
path is prepended to file if the file is not found or an absolute
|
is prepended to file if the file is not found or an absolute path is
|
||||||
path is not given
|
not given
|
||||||
|
|
||||||
* `tty [LVLS] <DEV | /bin/sh>`
|
* `tty [LVLS] <DEV | /bin/sh>`
|
||||||
|
|
||||||
@@ -142,9 +142,9 @@ is capable of service monitoring SSH, sysklogd, gdm and a console getty!
|
|||||||
------------
|
------------
|
||||||
|
|
||||||
At the end of the boot, when networking and all services are up, finit
|
At the end of the boot, when networking and all services are up, finit
|
||||||
calls its built-in run-parts(8) on the `/etc/finit.d/` directory, if
|
calls its built-in run-parts(8) on the `/etc/finit.d/` directory, if it
|
||||||
it exists. Similar to how the `/ec/rc.local` file works in most other
|
exists. Similar to how the `/ec/rc.local` file works in most other init
|
||||||
init daemons, only finit runs a directory of scripts. This replaces the
|
daemons, only finit runs a directory of scripts. This replaces the
|
||||||
earlier support for a `/usr/sbin/services.sh` script in the original
|
earlier support for a `/usr/sbin/services.sh` script in the original
|
||||||
finit.
|
finit.
|
||||||
|
|
||||||
@@ -173,8 +173,8 @@ or `tty`, add `[NNN]` to it in your `finit.conf`, like this:
|
|||||||
In this example acpid is started once at bootstrap using a conventional
|
In this example acpid is started once at bootstrap using a conventional
|
||||||
SysV init script. Here the run command was used, meaning the following
|
SysV init script. Here the run command was used, meaning the following
|
||||||
task command is not run until the init script has fully completed. Then
|
task command is not run until the init script has fully completed. Then
|
||||||
the keyboard setup script is called in parallel with spawning klogd as
|
the keyboard setup script is called in parallel with spawning klogd as a
|
||||||
a monitored service.
|
monitored service.
|
||||||
|
|
||||||
Tasks and services are started in parallel, while run commands are run
|
Tasks and services are started in parallel, while run commands are run
|
||||||
in the order listed and subsequent commands are not started until a run
|
in the order listed and subsequent commands are not started until a run
|
||||||
@@ -199,8 +199,7 @@ plugins are available:
|
|||||||
* *alsa-utils.so*: Restore and save ALSA sound settings on
|
* *alsa-utils.so*: Restore and save ALSA sound settings on
|
||||||
startup/shutdown.
|
startup/shutdown.
|
||||||
|
|
||||||
* *bootmisc.so*: Setup necessary files for UTMP, tracking logins
|
* *bootmisc.so*: Setup necessary files for UTMP, tracks logins at boot.
|
||||||
at boot.
|
|
||||||
|
|
||||||
* *dbus.so*: Setup and start system message bus, D-Bus, at boot.
|
* *dbus.so*: Setup and start system message bus, D-Bus, at boot.
|
||||||
|
|
||||||
@@ -282,15 +281,13 @@ what is built and where resulting binaries are installed.
|
|||||||
e.g., 1.3 but can be overridden by packagers using this variable to
|
e.g., 1.3 but can be overridden by packagers using this variable to
|
||||||
add a suffix or completely alter the version.
|
add a suffix or completely alter the version.
|
||||||
|
|
||||||
* `CFLAGS=`: Default `CFLAGS` are inherited from the build environment.
|
* `CFLAGS=`: Default `CFLAGS` are inherited from the environment.
|
||||||
|
|
||||||
* `CPPFLAGS=`: Default `CPPFLAGS` are inherited from the build
|
* `CPPFLAGS=`: Default `CPPFLAGS` are inherited from the environment.
|
||||||
environment.
|
|
||||||
|
|
||||||
* `LDFLAGS=`: Default `LDFLAGS` are inherited from the build
|
* `LDFLAGS=`: Default `LDFLAGS` are inherited from the environment.
|
||||||
environment.
|
|
||||||
|
|
||||||
* `LDLIBS=`: Default `LIBLIBS` are inherited from the build environment.
|
* `LDLIBS=`: Default `LIBLIBS` are inherited from the environment.
|
||||||
|
|
||||||
* `prefix=`: Base prefix path for all files, except `sbinbdir` and
|
* `prefix=`: Base prefix path for all files, except `sbinbdir` and
|
||||||
`sysconfdir`. Used in concert with the `DESTDIR` variable.
|
`sysconfdir`. Used in concert with the `DESTDIR` variable.
|
||||||
|
|||||||
Reference in new issue
Block a user