Systemd programming part 2: activation and language issues
Systemd programming part 2: activation and language issues
Posted Feb 20, 2014 17:54 UTC (Thu) by cg909 (guest, #95647)In reply to: Systemd programming part 2: activation and language issues by neilbrown
Parent article: Systemd programming part 2: activation and language issues
Directives in [Unit] apply to the dependeny tree and define general properties of the unit.
Directives in [Install] are only used when running systemctl enable/disable and have no other direct effect.
Directives in [Service], [Socket], ... define the behaviour when the unit is run. And as the allowed directives are different between unit types the sections also are named differently. This little redundancy may also help catching copy&paste errors between unit files.
Sections like [Exec], [Kill], ... would only group some related directives without providing context. Currently it would also split the execution environment directives and the Exec, ExecStartPre, etc. directives into different sections.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
