* some environments (eg, musl hardened) do not work properly with the
pidfile arg, so fall back to procname for correct rc-status
Package-Manager: Portage-2.3.67, Repoman-2.3.12
Signed-off-by: Steve Arnold <nerdboy@gentoo.org>
+++ /dev/null
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- need localmount
-}
-
-start() {
- ebegin "Starting hddtemp daemon"
- /sbin/start-stop-daemon --start --quiet --exec ${HDDTEMP_EXEC} \
- -- -d ${HDDTEMP_OPTS} ${HDDTEMP_DRIVES}
- eend $?
-}
-
-stop() {
- ebegin "Stopping hddtemp daemon"
- start-stop-daemon --stop --quiet --exec ${HDDTEMP_EXEC}
- eend $?
-}
-
-
--- /dev/null
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="${HDDTEMP_EXEC}"
+command_args="-d ${HDDTEMP_OPTS} ${HDDTEMP_DRIVES}"
+procname="hddtemp"
+
+depend() {
+ need localmount
+}
update_db "${ED}/usr/share/hddtemp/hddgentoo.db" "${ED}/usr/share/hddtemp/hddtemp.db"
newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp
- newinitd "${FILESDIR}"/hddtemp-init hddtemp
+ newinitd "${FILESDIR}"/hddtemp-init-r1 hddtemp
systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service"
systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf