diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2019-08-21 18:19:53 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2019-08-21 18:19:53 -0500 |
commit | 2aa921ccdaf0f6da2403a98896720dc5deb91955 (patch) | |
tree | ae518befde0ad54139c8802b9ab375679eecd837 /libre/systemd/systemd-hook | |
parent | 38cc16e317177df3adc1e2e6d1dee8dd071ea5a8 (diff) | |
download | abslibre-2aa921ccdaf0f6da2403a98896720dc5deb91955.tar.gz abslibre-2aa921ccdaf0f6da2403a98896720dc5deb91955.tar.bz2 abslibre-2aa921ccdaf0f6da2403a98896720dc5deb91955.zip |
systemd-242.84-2.par1: rebuild
Diffstat (limited to 'libre/systemd/systemd-hook')
-rw-r--r-- | libre/systemd/systemd-hook | 9 |
1 files changed, 7 insertions, 2 deletions
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 |