Merge branch 'gentoo-scripts' of github.com:ConiKost/ebusd into gentoo
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# /etc/conf.d/ebusd:
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
# config file for ebusd service.
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# Options to pass to ebusd (run "ebusd -?" for more info):
|
# Options to pass to ebusd (run "ebusd --help" for more info)
|
||||||
EBUSD_OPTS="--scanconfig"
|
EBUSD_OPTS="--scanconfig"
|
||||||
|
|||||||
@@ -1,14 +1,17 @@
|
|||||||
#!/sbin/runscript
|
#!/sbin/openrc-run
|
||||||
# Copyright 1999-2013 Gentoo Foundation
|
# Copyright 1999-2024 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: $
|
|
||||||
|
|
||||||
command="/usr/bin/ebusd"
|
command="/usr/bin/ebusd"
|
||||||
command_args="${EBUSD_OPTS}"
|
command_args="${EBUSD_OPTS}"
|
||||||
start_stop_daemon_args="--quiet"
|
logfile_path="/var/log/ebusd"
|
||||||
description="ebusd, the daemon for communication with eBUS heating systems."
|
logfile="${pidfile_path}/ebusd.log"
|
||||||
|
name="eBUS daemon"
|
||||||
|
pidfile_path="/run/ebusd"
|
||||||
|
pidfile="${pidfile_path}/ebusd.pid"
|
||||||
|
|
||||||
depend() {
|
start_pre() {
|
||||||
need localmount
|
checkpath -d -q "${logfile_path}"
|
||||||
use logger
|
checkpath -d -q "${pidfile_path}"
|
||||||
|
checkpath -f -q "${logfile}"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=eBUS daemon
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
User=ebusd
|
||||||
|
Group=ebusd
|
||||||
|
ExecStart=/usr/bin/ebusd ${EBUSD_OPTS}
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user