Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-9793 Modernize Telemetry Software on Funtoo
  3. FL-9832

Fix Openrc init script start-stop-daemon parameter typo in group autogen rc file template

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • Hide
      emerge -av1 app-metrics/node_exporter-bin
      /etc/init.d/node_exporter start
      /etc/init.d/node_exporter status
      Show
      emerge -av1 app-metrics/node_exporter-bin /etc/init.d/node_exporter start /etc/init.d/node_exporter status
    • 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.

            siris siris
            siris siris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: