From 2aa921ccdaf0f6da2403a98896720dc5deb91955 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Wed, 21 Aug 2019 18:19:53 -0500 Subject: systemd-242.84-2.par1: rebuild --- libre/systemd/systemd-hook | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libre/systemd/systemd-hook') diff --git a/libre/systemd/systemd-hook b/libre/systemd/systemd-hook index 793a42943..00252cf79 100644 --- a/libre/systemd/systemd-hook +++ b/libre/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