added error logging to example openrc service

This commit is contained in:
celso 2022-11-22 21:50:49 -03:00
parent 38fd93cc43
commit b4b4ccbcd5
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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