The Mer Wiki now uses your Mer user account and password (create account on


From Mer Wiki
Revision as of 13:25, 18 June 2013 by Lbt (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Currently Mer packages require systemd in the build phase to use the systemd macros. This may change.

Until then your spec/yaml should contain:

BuildRequires:  systemd

System units should be installed to:


In preparation for next version:

%define _userunitdir /usr/lib/systemd/user/

and install user units to:


Note that no units should ever be installed into /etc/ although the installation macros will create symlinks there.

Links should almost never be installed into systemd/system/*.wants ; instead use the [Install] section of the unit.

All the %preun %post and %postun macros must be provided.

The %preun macro is simply

%systemd_preun my.service

The %post macro

%systemd_post my.service

The %postun is typically

%systemd_postun_with_restart my.service

For services that don't support a restart (eg if clients have stateful connections) then use:


These macros support the systemd 'preset' for controlling service policy. This essentially decides whether services run automatically when installed. Packages *must not* install preset files - the vendor should provide these.


The macros definitions can be found at

This thread was useful:

Fedora packaging snippets: also

Personal tools