[systemd-devel] Documentation about upstreaming unit files

Tomasz Torcz tomek at pipebreaker.pl
Fri Jun 29 09:36:46 PDT 2012


On Fri, Jun 29, 2012 at 05:52:45PM +0200, Paul Menzel wrote:
> 1. What license should the unit files have? The one of the upstream
> project?

  Probably yes. Unit files are trivial in most cases.
 
> 2. Should the unit files be put in a directory `systemd/`?
> 3. Do the distributions install the file to the correct directory
> `/lib/systemd/system/` or is the upstream build system supposed to do
> that?

  man 7 daemon contains example autotools snippets, which install
unit files to directory pointed by pkg-config.  Those snippets
detects non-systemd distributions and do not install units then.
Some changes may be needed to parse unit definitions and substitute
for example paths in accordance with --prefix= and --*dir= parameters
during build.

> 4. What should upstream do if the service files differ for
> distributions?

  Try very hard to minimize delta and optimally have only one
unit for all distributions.  This may require implementing configuration
file support and build-time declaration of its default location.


-- 
Tomasz Torcz                        To co nierealne -- tutaj jest normalne.
xmpp: zdzichubg at chrome.pl          Ziomale na życie mają tu patenty specjalne.



More information about the systemd-devel mailing list