summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-06-20 17:52:28 -0300
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-06-20 17:52:28 -0300
commit5c6288c62d4a2a7f2e519758a6f851564a293b38 (patch)
tree7760dbe9b37e231d6c7a30dca65eb6be923aa0e0
parent31ee4472e897cbf0c3d61bd56bd5864f4507b659 (diff)
Updated example init scriptsHEADmain
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-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"