Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17798

systemd and zabbix-agent: Wrong display of service name if no command is given

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 5.2 (plan)
    • 5.0.0
    • Packages (C)
    • None
    • Debian 10.4
    • Sprint 64 (May 2020), Sprint 65 (Jun 2020), Sprint 66 (Jul 2020)
    • 0.125

      Steps to reproduce:

      1. Install zabbix-agent on debian 10.4
      2. Run "systemctl enable zabbix-agent

      Result:
      This creates the file: /etc/init.d/zabbix-agent with different actions for start, stop, status, restart and a default action.

      The default action defines:

      echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload|status}" >&2

      /etc/init.d/$NAME does not resolve to the correct file name.

      Expected:

      The command should better be like:

      echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2

      This resolves always to the correct script name.

            yurii Jurijs Klopovskis
            janipesi Peter Kopshoff
            Team I
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: