summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/ebusd/files/ebusd.initd-r1')
-rw-r--r--app-misc/ebusd/files/ebusd.initd-r120
1 files changed, 20 insertions, 0 deletions
diff --git a/app-misc/ebusd/files/ebusd.initd-r1 b/app-misc/ebusd/files/ebusd.initd-r1
new file mode 100644
index 000000000000..38bdb22d034e
--- /dev/null
+++ b/app-misc/ebusd/files/ebusd.initd-r1
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2024 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/ebusd"
+command_args="${EBUSD_OPTS}"
+ebusd_path="/var/lib/ebusd"
+html_path="${ebusd_path}/html"
+logfile_path="/var/log/ebusd"
+logfile="${logfile_path}/ebusd.log"
+name="eBUS daemon"
+pidfile_path="/run/ebusd"
+pidfile="${pidfile_path}/ebusd.pid"
+
+start_pre() {
+ checkpath -d -q "${ebusd_path}" "${html_path}"
+ checkpath -d -q "${logfile_path}"
+ checkpath -d -q "${pidfile_path}"
+ checkpath -f -q "${logfile}"
+}