zabbix/misc/init.d/debian/zabbix-agent is confused about its name

XMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 3.2.1
    • Component/s: Agent (G), Installation (I)
    • Environment:
      debian 7.8; zabbix-agent = 1:2.2.7+dfsg-2

      the init.d file for debian is confused about its filename

      host:/var/log/zabbix# service zabbix-agent
      Usage: /etc/init.d/zabbix_agentd {start|stop|restart|force-reload}
      host:/var/log/zabbix# less /etc/init.d/zabbix_agentd
      /etc/init.d/zabbix_agentd: No such file or directory
      

      Note that there are two problems with this output:

      1. It the output includes an underscore _, but the service uses a -.
      2. It includes a trailing d, but the service name does not.

      The same first problem occurs for zabbix-server.

      I've attached a patch (against .D........ ZBXNEXT-1667 added frontend changes to the Changelog) which should fix this.

      The version I encountered this problem is older, but the code is still broken in current.

      One could use $0 instead if calculating name, but at least some debian scripts like to do some gymnastics (to handle cases where sysv init systems are in play).

            Assignee:
            Unassigned
            Reporter:
            Josh Soref
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: