update: rename filedir to work with new version of leaf
This commit is contained in:
18
sys-apps/dbus/dbus-reload.HOOK
Normal file
18
sys-apps/dbus/dbus-reload.HOOK
Normal file
@@ -0,0 +1,18 @@
|
||||
target=(/etc/dbus-1/system.d/*.conf
|
||||
/usr/share/dbus-1/system.d/*.conf
|
||||
/usr/share/dbus-1/system-services/*.service
|
||||
)
|
||||
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 try-reload-or-restart dbus.service
|
||||
}
|
||||
Reference in New Issue
Block a user