HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //usr/syno/lib/systemd/scripts/syno-dbus-check.sh
#!/bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin
dbus_type=$1

mkdir -p /var/run/dbus

if [ "system" = "$dbus_type" ]; then
	# for register org.freedesktop.systemd1
	kill -USR1 1
fi

for i in $(seq 1 60)
do
	dbus-send --"$dbus_type" --type=method_call --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.Introspectable.Introspect
	if [ 0 = $? ]; then
		exit 0
	fi
	sleep 1
done

exit 0