summary refs log tree commit diff
path: root/.config/rc/init.d/secretsd
diff options
context:
space:
mode:
Diffstat (limited to '.config/rc/init.d/secretsd')
-rwxr-xr-x.config/rc/init.d/secretsd18
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/rc/init.d/secretsd b/.config/rc/init.d/secretsd
new file mode 100755
index 0000000..8c639a9
--- /dev/null
+++ b/.config/rc/init.d/secretsd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
+SECRETSD_HOME=${XDG_DATA_HOME}/secretsd
+
+description="Lightweight Wayland notification daemon"
+
+command="/usr/bin/secretsd"
+command_args="--no-syslog --db-path=${SECRETSD_HOME}/db --key-location=file:${SECRETSD_HOME}/key"
+supervisor=supervise-daemon
+error_logger="logger -t '${RC_SVCNAME}' -p daemon.error"
+
+depend() {
+	need dbus
+}
+
+start_pre() {
+	checkpath -q -d ${SECRETSD_HOME}
+}