-
Sub-task
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
-
Syntax error in OpenRC init script's command's parameter
During some Project Telemetry local development testing I discovered a typo bug in the group autogen Prometheus exporters rc file template:
11 │ start-stop-daemon --start -b \ 12 │ --make-pidfile \ 13 │ --pidfile /run/${EXPORTER_NAME}.pid \ 14 │ --user ${EXPORTER_USER}:${EXPORTER_GROUP} \ 15 │ stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ 16 │ stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ 17 │ --exec /usr/bin/${EXPORTER_NAME} -- ${EXPORTER_ARGS}
The stdout and stderr parameters of start-stop-daemon start missing double dash flag prefixes. This is making things like node_exporter-bin startup crash when invoked via the OpenRC init script.