added error logging to example openrc service
This commit is contained in:
parent
38fd93cc43
commit
b4b4ccbcd5
|
@ -60,6 +60,7 @@ command=/usr/bin/homemade_speedstep
|
||||||
command_args="${HSMAXTEMP} ${HSMINTEMP}"
|
command_args="${HSMAXTEMP} ${HSMINTEMP}"
|
||||||
command_background=true
|
command_background=true
|
||||||
pidfile="/run/${RC_SVCNAME}.pid"
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
|
error_log=/var/log/homemade_speedstep.err
|
||||||
|
|
||||||
checkconfig() {
|
checkconfig() {
|
||||||
if [ ${HSMAXTEMP} -lt 100000 ] && [ ${HSMINTEMP} -lt ${HSMAXTEMP} ] ; then
|
if [ ${HSMAXTEMP} -lt 100000 ] && [ ${HSMINTEMP} -lt ${HSMAXTEMP} ] ; then
|
||||||
|
|
|
@ -5,6 +5,7 @@ command=/usr/bin/homemade_speedstep
|
||||||
command_args="${HSMAXTEMP} ${HSMINTEMP}"
|
command_args="${HSMAXTEMP} ${HSMINTEMP}"
|
||||||
command_background=true
|
command_background=true
|
||||||
pidfile="/run/${RC_SVCNAME}.pid"
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
|
error_log=/var/log/homemade_speedstep.err
|
||||||
|
|
||||||
checkconfig() {
|
checkconfig() {
|
||||||
if [ ${HSMAXTEMP} -lt 100000 ] && [ ${HSMINTEMP} -lt ${HSMAXTEMP} ] ; then
|
if [ ${HSMAXTEMP} -lt 100000 ] && [ ${HSMINTEMP} -lt ${HSMAXTEMP} ] ; then
|
||||||
|
|
Loading…
Reference in New Issue