mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
20 lines
549 B
Text
20 lines
549 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2024 Gentoo Authors
|
|
# 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}"
|
|
}
|