Files
LFS-PKGBUILDs/lfs/systemd/30-systemd-daemon-reload-system.HOOK

15 lines
333 B
Plaintext

target=(/usr/lib/systemd/system/*)
triggers=("install" "remove")
operation(){
if systemd-detect-virt --chroot; then
echo >&2 " Skipped: Running in chroot."
exit 0
fi
if ! systemd-notify --booted; then
echo >&2 " Skipped: Current root is not booted."
exit 0
fi
/usr/bin/systemctl --system daemon-reload
}