summaryrefslogtreecommitdiff
path: root/.config/s6-rc/dbus
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2024-02-04 10:28:10 -0500
committerSam Nystrom <sam@samnystrom.dev>2024-02-04 10:28:10 -0500
commit43bab9ba6f53da5f4c9fa5252736ca8b30e089f8 (patch)
tree76d43892e5105e9fc34bdd2e65dd556999522d25 /.config/s6-rc/dbus
parent2a1ada12b2af913d74bb90d0e2e87f58d8327029 (diff)
Switch from superd to s6 for session service management
Diffstat (limited to '.config/s6-rc/dbus')
-rwxr-xr-x.config/s6-rc/dbus/data/check3
-rw-r--r--.config/s6-rc/dbus/notification-fd1
-rw-r--r--.config/s6-rc/dbus/producer-for1
-rwxr-xr-x.config/s6-rc/dbus/run5
-rw-r--r--.config/s6-rc/dbus/type1
5 files changed, 11 insertions, 0 deletions
diff --git a/.config/s6-rc/dbus/data/check b/.config/s6-rc/dbus/data/check
new file mode 100755
index 0000000..0444e0b
--- /dev/null
+++ b/.config/s6-rc/dbus/data/check
@@ -0,0 +1,3 @@
+#!/bin/execlineb -P
+importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR
+test -S ${XDG_RUNTIME_DIR}/bus
diff --git a/.config/s6-rc/dbus/notification-fd b/.config/s6-rc/dbus/notification-fd
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/.config/s6-rc/dbus/notification-fd
@@ -0,0 +1 @@
+3
diff --git a/.config/s6-rc/dbus/producer-for b/.config/s6-rc/dbus/producer-for
new file mode 100644
index 0000000..7be2401
--- /dev/null
+++ b/.config/s6-rc/dbus/producer-for
@@ -0,0 +1 @@
+dbus-log
diff --git a/.config/s6-rc/dbus/run b/.config/s6-rc/dbus/run
new file mode 100755
index 0000000..bbf8767
--- /dev/null
+++ b/.config/s6-rc/dbus/run
@@ -0,0 +1,5 @@
+#!/bin/execlineb -P
+fdmove -c 2 1
+importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR
+s6-notifyoncheck
+dbus-daemon --session --nofork --nopidfile --nosyslog --address unix:path=${XDG_RUNTIME_DIR}/bus
diff --git a/.config/s6-rc/dbus/type b/.config/s6-rc/dbus/type
new file mode 100644
index 0000000..5883cff
--- /dev/null
+++ b/.config/s6-rc/dbus/type
@@ -0,0 +1 @@
+longrun