From b4b4ccbcd5b35f09569c5eb1cf589c255797e4ce Mon Sep 17 00:00:00 2001 From: celso Date: Tue, 22 Nov 2022 21:50:49 -0300 Subject: [PATCH] added error logging to example openrc service --- README.md | 1 + init.d/homemade_speedstep | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index fc0a99b..e67ad66 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ command=/usr/bin/homemade_speedstep command_args="${HSMAXTEMP} ${HSMINTEMP}" command_background=true pidfile="/run/${RC_SVCNAME}.pid" +error_log=/var/log/homemade_speedstep.err checkconfig() { if [ ${HSMAXTEMP} -lt 100000 ] && [ ${HSMINTEMP} -lt ${HSMAXTEMP} ] ; then diff --git a/init.d/homemade_speedstep b/init.d/homemade_speedstep index 4cfdd61..042ac25 100755 --- a/init.d/homemade_speedstep +++ b/init.d/homemade_speedstep @@ -5,6 +5,7 @@ command=/usr/bin/homemade_speedstep command_args="${HSMAXTEMP} ${HSMINTEMP}" command_background=true pidfile="/run/${RC_SVCNAME}.pid" +error_log=/var/log/homemade_speedstep.err checkconfig() { if [ ${HSMAXTEMP} -lt 100000 ] && [ ${HSMINTEMP} -lt ${HSMAXTEMP} ] ; then