OSDN Git Service

dbus: use polling to notify readiness
authormobinmob <mobinmob@disroot.org>
Wed, 10 Feb 2021 21:51:58 +0000 (23:51 +0200)
committermobinmob <mobinmob@disroot.org>
Wed, 10 Feb 2021 22:19:09 +0000 (00:19 +0200)
usr/share/66/service/dbus/data/check [new file with mode: 0755]
usr/share/66/service/dbus/dbus [moved from usr/share/66/service/dbus with 56% similarity]

diff --git a/usr/share/66/service/dbus/data/check b/usr/share/66/service/dbus/data/check
new file mode 100755 (executable)
index 0000000..39eeac1
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec dbus-send --system / org.freedesktop.DBus.Peer.Ping > /dev/null 2> /dev/null
similarity index 56%
rename from usr/share/66/service/dbus
rename to usr/share/66/service/dbus/dbus
index 6d9c09f..acbd59b 100644 (file)
@@ -1,15 +1,14 @@
 [main]
 @type = longrun
-@version = 0.0.1
+@version = 0.0.2
 @description = "dbus system daemon"
 @user = ( root )
 @maxdeath = 3
-@notify = 4
-@options = ( log )
-@timeout-up = 3000
+@notify = 3
+@hiercopy = ( data )
 
 [start]
 @execute = (
        execl-toc -d /run/dbus  -m 755 -g 22 -u 22
-       dbus-daemon --nofork --nopidfile --system --print-pid=4
+       exec s6-notifyoncheck dbus-daemon --nofork --system --nopidfile
 )