Prevent dbus-reload hook from throwing an error when dbus isn't running
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: dbus
|
name: dbus
|
||||||
description: Freedesktop.org message bus system
|
description: Freedesktop.org message bus system
|
||||||
version: 1.14.10
|
version: 1.14.10
|
||||||
revision: 5
|
revision: 6
|
||||||
url: https://www.freedesktop.org/wiki/Software/dbus
|
url: https://www.freedesktop.org/wiki/Software/dbus
|
||||||
license: AFL2.1 or GPL2-or-later
|
license: AFL2.1 or GPL2-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ trigger_operations: ["install", "upgrade", "remove"]
|
|||||||
target_type: "path"
|
target_type: "path"
|
||||||
targets: ["etc/dbus-1/system.d/*.conf", "usr/share/dbus-1/system.d/*.conf", "usr/share/dbus-1/system-services/*.service"]
|
targets: ["etc/dbus-1/system.d/*.conf", "usr/share/dbus-1/system.d/*.conf", "usr/share/dbus-1/system-services/*.service"]
|
||||||
depends: ["dbus"]
|
depends: ["dbus"]
|
||||||
run: "dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig"
|
run: "/usr/sbin/dbus-reload"
|
||||||
|
|||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Warning: this script should only be run by the dbus-reload BPM hook. Users should avoid running this script"
|
||||||
|
|
||||||
|
# Reload system bus configuration
|
||||||
|
dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig &> /dev/null
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -45,6 +45,7 @@ package() {
|
|||||||
ln -sfv /etc/machine-id "$BPM_OUTPUT"/var/lib/dbus
|
ln -sfv /etc/machine-id "$BPM_OUTPUT"/var/lib/dbus
|
||||||
|
|
||||||
install -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook
|
install -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook
|
||||||
|
install -Dm755 "$BPM_WORKDIR"/dbus-reload.sh "$BPM_OUTPUT"/usr/sbin/dbus-reload
|
||||||
install -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv
|
install -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dbus/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dbus/COPYING
|
||||||
|
|||||||
Reference in New Issue
Block a user