summaryrefslogtreecommitdiff
path: root/libre-testing/systemd/systemd-hook
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-02-21 21:54:20 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2021-02-25 00:00:41 -0500
commit631fef79feb0063d1e8000cc17746f1725084a91 (patch)
tree88287075138c65b03300d3fe135310ed34c74652 /libre-testing/systemd/systemd-hook
parent7650fab4b2f279f32161418f661cffa78913e40a (diff)
downloadabslibre-631fef79feb0063d1e8000cc17746f1725084a91.tar.gz
abslibre-631fef79feb0063d1e8000cc17746f1725084a91.tar.bz2
abslibre-631fef79feb0063d1e8000cc17746f1725084a91.zip
[arm/libre-testing/systemd]: v247.3
Diffstat (limited to 'libre-testing/systemd/systemd-hook')
-rw-r--r--libre-testing/systemd/systemd-hook9
1 files changed, 7 insertions, 2 deletions
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