diff options
Diffstat (limited to 'libre-testing/systemd/systemd-hook')
-rw-r--r-- | libre-testing/systemd/systemd-hook | 9 |
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 |