From 631fef79feb0063d1e8000cc17746f1725084a91 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Sun, 21 Feb 2021 21:54:20 -0500 Subject: [arm/libre-testing/systemd]: v247.3 --- libre-testing/systemd/systemd-hook | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libre-testing/systemd/systemd-hook') diff --git a/libre-testing/systemd/systemd-hook b/libre-testing/systemd/systemd-hook index 793a42943..00252cf79 100644 --- a/libre-testing/systemd/systemd-hook +++ b/libre-testing/systemd/systemd-hook @@ -7,7 +7,9 @@ systemd_live() { fi } -case $1 in +op="$1"; shift + +case "$op" in catalog) /usr/bin/journalctl --update-catalog ;; update) touch -c /usr ;; sysusers) /usr/bin/systemd-sysusers ;; @@ -17,7 +19,10 @@ case $1 in binfmt) systemd_live; /usr/lib/systemd/systemd-binfmt ;; sysctl) systemd_live; /usr/lib/systemd/systemd-sysctl ;; - *) echo >&2 " Invalid operation '$1'"; exit 1 ;; + # For use by other packages + reload) systemd_live; /usr/bin/systemctl try-reload-or-restart "$@" ;; + + *) echo >&2 " Invalid operation '$op'"; exit 1 ;; esac exit 0 -- cgit v1.2.3