From 590f18a27c05524f5332819b9580afc327b95d84 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 21 Jun 2012 22:14:17 +0200 Subject: rpm: include RPM macro definition for .spec snippets 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 --- src/core/.gitignore | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/.gitignore') diff --git a/src/core/.gitignore b/src/core/.gitignore index eef2e5971e..f293bbdc93 100644 --- a/src/core/.gitignore +++ b/src/core/.gitignore @@ -1 +1,2 @@ +/macros.systemd /systemd.pc -- cgit v1.2.3-54-g00ecf