Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-11-16 | rpm: udevadm is actually in bindir | Zbigniew Jędrzejewski-Szmek | |
2012-11-16 | rpm: update RPM macros to include definitions for more drop-in directories ↵ | Lennart Poettering | |
and for reloading/rebuilding configuration More specifically this adds a number of macros that resolve to directories for udev rules, hwdb entries, tmpfiles and sysctl. Thsi also includes three new macros for rebuilding the hwbd/catalog index when a package drops in new files | |||
2012-09-13 | rpm: expose preset dir as rpm macro and in systemd.pc | Lennart Poettering | |
2012-06-21 | rpm: include RPM macro definition for .spec snippets | Lennart Poettering | |
Let's try to standardize a bit the RPM macros used for installing/uninstalling services. This only covers the non-SysV compat bits, since that tends to vary widely between the various distros. Usage: Add %{?systemd_requires} to the header of the spec file. And then: %post %systemd_post foobar.service %preun %systemd_preun foobar.service %postun %systemd_postun foobar.service And, instead of the latter, in case the service shall be restarted on updates: %postun %systemd_postun_restart foobar.service |