summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Arnold <nerdboy@gentoo.org>2019-07-27 15:47:46 -0700
committerStephen Arnold <nerdboy@gentoo.org>2019-07-27 15:47:46 -0700
commitf210149eaacd6e727606a316c0b5c864f4e9e6c8 (patch)
treef8a35686c720bcea36777b1378e2f28ffc7d29ed /app-admin/hddtemp/files/hddtemp-init-r1
parentnet-libs/gupnp: arm64 stable (diff)
downloadgentoo-f210149eaacd6e727606a316c0b5c864f4e9e6c8.tar.gz
gentoo-f210149eaacd6e727606a316c0b5c864f4e9e6c8.tar.bz2
gentoo-f210149eaacd6e727606a316c0b5c864f4e9e6c8.zip
app-admin/hddtemp: simplify and correct baseline init script
* 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>
Diffstat (limited to 'app-admin/hddtemp/files/hddtemp-init-r1')
-rw-r--r--app-admin/hddtemp/files/hddtemp-init-r111
1 files changed, 11 insertions, 0 deletions
diff --git a/app-admin/hddtemp/files/hddtemp-init-r1 b/app-admin/hddtemp/files/hddtemp-init-r1
new file mode 100644
index 000000000000..00d09ac2c610
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-init-r1
@@ -0,0 +1,11 @@
+#!/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
+}