Systemd programming part 2: activation and language issues
Systemd programming part 2: activation and language issues
Posted Feb 14, 2014 21:29 UTC (Fri) by neilbrown (subscriber, #359)In reply to: Systemd programming part 2: activation and language issues by mathstuf
Parent article: Systemd programming part 2: activation and language issues
thanks for highlighting that. It is a relevant example that I hadn't fully explored.
Clearly Exec{Start,Stop}{Pre,Post} (and multiple others such as WorkingDirectory) are permitted in both the [Service] section and the [Socket] section. However they have the same meaning in both sections, and no unit file can have both sections, so there would still be no ambiguity if the section headings were absent. The precise meaning is determined by the suffix of the unit file.
(and I did wonder why those "multiple others" were not in an [Exec] section, seeing they are documented in systemd.exec - there is some fancy m4 preprocessor code to duplicate a collection of Directives across multiple sections in src/core/load-fragment-gperf.gperf.m4)
