diff options
Diffstat (limited to 'systemd-hook')
-rw-r--r-- | systemd-hook | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/systemd-hook b/systemd-hook index 0a664f2c5824..6f2e899234cf 100644 --- a/systemd-hook +++ b/systemd-hook @@ -14,7 +14,9 @@ udevd_live() { fi } -case $1 in +op="$1"; shift + +case "$op" in catalog) /usr/bin/journalctl --update-catalog ;; hwdb) /usr/bin/systemd-hwdb --usr update ;; update) touch -c /usr ;; @@ -26,7 +28,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 |