summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-11-16 19:54:19 +0100
committerLennart Poettering <lennart@poettering.net>2012-11-16 20:07:14 +0100
commit1b0fcd7411da6ae2cdb9d72100333987ce1aef44 (patch)
treee3ef8bbe3bf8d27adb49563d2d4eb9c9b102a2e8 /src/core
parent7c670f5b44a6e8758918eaacd59f472ee7942514 (diff)
rpm: update RPM macros to include definitions for more drop-in directories 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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/macros.systemd.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in
index e521df337d..f77082c2db 100644
--- a/src/core/macros.systemd.in
+++ b/src/core/macros.systemd.in
@@ -21,6 +21,11 @@
%_unitdir @systemunitdir@
%_presetdir @systempresetdir@
+%_udevhwdbdir @udevhwdbdir@
+%_udevrulesdir @udevrulesdir@
+%_journalcatalogdir @catalogdir@
+%_tmpfilesdir @tmpfilesdir@
+%_sysctldir @sysctldir@
%systemd_requires \
Requires(post): systemd \
@@ -54,3 +59,15 @@ if [ $1 -ge 1 ] ; then \
@rootbindir@/systemctl try-restart %{?*} >/dev/null 2>&1 || : \
fi \
%{nil}
+
+%udev_hwdb_update() \
+@rootbindir@/udevadm hwdb --update >/dev/null 2>&1 || : \
+%{nil}
+
+%udev_rules_update() \
+@rootbindir@/udevadm control --reload >/dev/null 2>&1 || : \
+%{nil}
+
+%journal_catalog_update() \
+@rootbindir@/journalctl --update-catalog >/dev/null 2>&1 || : \
+%{nil}