| 1 | This section provides an overview of Finit's configuration system. For |
| 2 | detailed information on specific topics, see the individual sections in |
| 3 | the navigation menu. |
| 4 | |
| 5 | |
| 6 | Configuration File Syntax |
| 7 | -------------------------- |
| 8 | |
| 9 | The file format is line based, empty lines and comments, lines starting |
| 10 | with `#`, are ignored. A configuration directive starts with a keyword |
| 11 | followed by a space and the rest of the line is treated as the value. |
| 12 | |
| 13 | As of Finit v4.4, configuration directives can be broken up in multiple |
| 14 | lines using the continuation character `\`, and trailing comments are |
| 15 | also allowed. Example: |
| 16 | |
| 17 | ```aconf |
| 18 | # Escape \# chars if you want them literal in, e.g., descriptions |
| 19 | service name:sysklogd [S123456789] \ |
| 20 | env:-/etc/default/sysklogd \ |
| 21 | syslogd -F $SYSLOGD_ARGS \ |
| 22 | -- System log daemon \# 1 # Comments allowed |
| 23 | ``` |
| 24 | |
| 25 | The .conf files `/etc/finit.conf` and `/etc/finit.d/*` support many |
| 26 | directives. Some are restricted, e.g., only available at bootstrap, |
| 27 | runlevel `S`. Read on in [Files & Layout](files.md) for more on how |
| 28 | to structure your .conf files. |
| 29 | |
| 30 | For details on restrictions, see [Limitations](limitations.md). |