summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/dbus4
-rwxr-xr-xinit.d/pipewire6
-rwxr-xr-xinit.d/pipewire-pulse4
-rwxr-xr-xinit.d/syncthing8
-rwxr-xr-xinit.d/wireplumber5
5 files changed, 19 insertions, 8 deletions
diff --git a/init.d/dbus b/init.d/dbus
index 055c1ba..57e13fd 100755
--- a/init.d/dbus
+++ b/init.d/dbus
@@ -1,6 +1,8 @@
#!/sbin/openrc-run
+DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/bus"
pidfile="${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/${RC_SVCNAME#*.}"
command="/usr/bin/dbus-daemon"
-command_args="--session --syslog --nofork --address unix:path=${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/bus"
+command_args="--session --syslog --nofork --address ${DBUS_SESSION_BUS_ADDRESS}"
command_background=yes
+export_vars="DBUS_SESSION_BUS_ADDRESS"
diff --git a/init.d/pipewire b/init.d/pipewire
index e5c9e89..76c8f6a 100755
--- a/init.d/pipewire
+++ b/init.d/pipewire
@@ -1,5 +1,9 @@
#!/sbin/openrc-run
+depend() {
+ need dbus
+}
+
command="/usr/bin/pipewire"
command_background="true"
-pidfile="${XDG_RUNTIME_DIR:-${SVCDIR}}/pipewire.pid"
+pidfile="${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/pipewire.pid"
diff --git a/init.d/pipewire-pulse b/init.d/pipewire-pulse
index 9e029c3..8a3fb71 100755
--- a/init.d/pipewire-pulse
+++ b/init.d/pipewire-pulse
@@ -1,10 +1,10 @@
#!/sbin/openrc-run
depend() {
- need pipewire
+ need pipewire dbus
}
command="/usr/bin/pipewire"
command_args="-c pipewire-pulse.conf"
command_background="true"
-pidfile="${XDG_RUNTIME_DIR:-${SVCDIR}}/pipewire-pulse.pid"
+pidfile="${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/pipewire-pulse.pid"
diff --git a/init.d/syncthing b/init.d/syncthing
new file mode 100755
index 0000000..b77fb09
--- /dev/null
+++ b/init.d/syncthing
@@ -0,0 +1,8 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/bin/syncthing
+command_background="true"
+pidfile=${XDG_RUNTIME_DIR:-${SVCDIR}}/emacs.pid
+description="Syncthing"
diff --git a/init.d/wireplumber b/init.d/wireplumber
index 823ff2d..ca5098c 100755
--- a/init.d/wireplumber
+++ b/init.d/wireplumber
@@ -4,9 +4,6 @@ depend() {
need pipewire dbus
}
-DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR:-${RC_SVCDIR}}/bus"
-export DBUS_SESSION_BUS_ADDRESS
-
command="/usr/bin/wireplumber"
command_background=true
-pidfile="${XDG_RUNTIME_DIR-:${SVCDIR}}/wireplumber.pid"
+pidfile="${XDG_RUNTIME_DIR:-${SVCDIR}}/wireplumber.pid"