From 76c22908e0167578f6e6e74b27d7c675fedff644 Mon Sep 17 00:00:00 2001 From: Yurii Kolesnykov Date: Fri, 7 Apr 2023 04:50:16 +0300 Subject: sync with testing/systemd, versioned depends Signed-off-by: Yurii Kolesnykov --- systemd-hook | 52 +++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 11 deletions(-) (limited to 'systemd-hook') diff --git a/systemd-hook b/systemd-hook index e8fe033..4a62ec6 100644 --- a/systemd-hook +++ b/systemd-hook @@ -26,21 +26,51 @@ udevd_live() { op="$1"; shift case "$op" in - catalog) /usr/bin/journalctl --update-catalog ;; - hwdb) /usr/bin/systemd-hwdb --usr update ;; - update) touch -c /usr ;; - sysusers) /usr/bin/systemd-sysusers ;; - tmpfiles) /usr/bin/systemd-tmpfiles --create ;; + catalog) + /usr/bin/journalctl --update-catalog + ;; + hwdb) + /usr/bin/systemd-hwdb --usr update + ;; + update) + touch -c /usr + ;; + sysusers) + /usr/bin/systemd-sysusers + ;; + tmpfiles) + /usr/bin/systemd-tmpfiles --create + ;; - daemon-reload) systemd_live; /usr/bin/systemctl daemon-reload ;; - udev-reload) udevd_live; /usr/bin/udevadm control --reload; /usr/bin/udevadm trigger ;; - binfmt) systemd_live; /usr/lib/systemd/systemd-binfmt ;; - sysctl) systemd_live; /usr/lib/systemd/systemd-sysctl ;; + daemon-reload) + systemd_live + /usr/bin/systemctl daemon-reload + ;; + udev-reload) + udevd_live + /usr/bin/udevadm control --reload + /usr/bin/udevadm trigger + /usr/bin/udevadm settle + ;; + binfmt) + systemd_live + /usr/lib/systemd/systemd-binfmt + ;; + sysctl) + systemd_live + /usr/lib/systemd/systemd-sysctl + ;; # For use by other packages - reload) systemd_live; /usr/bin/systemctl try-reload-or-restart "$@" ;; + reload) + systemd_live + /usr/bin/systemctl try-reload-or-restart "$@" + ;; - *) echo >&2 " Invalid operation '$op'"; exit 1 ;; + *) + echo >&2 " Invalid operation '$op'" + exit 1 + ;; esac exit 0 -- cgit v1.2.3-70-g09d2