nagios4.service

This unit is provided by:

Options

  • [Install]
  • [Service]
    • Environment=NAGIOSCFG="/etc/nagios4/nagios.cfg"
    • EnvironmentFile=/etc/default/nagios4
    • ExecReload=/bin/kill -HUP $MAINPID
    • ExecStart=/usr/sbin/nagios4 ${NAGIOSCFG}
    • ExecStartPre=sh -c 'nagiospipe=$$(sed -n "s/^command_file=\\(.*\\)/\\1/p" ${NAGIOSCFG}); [ -z "$${nagiospipe}" -o ! -e "$${nagiospipe}" ] || rm -f "$${nagiospipe}"'
    • ExecStopPost=sh -c 'nagiospipe=$$(sed -n "s/^command_file=\\(.*\\)/\\1/p" ${NAGIOSCFG}); [ -z "$${nagiospipe}" -o ! -e "$${nagiospipe}" ] || rm -f "$${nagiospipe}"'
    • KillMode=mixed
    • PIDFile=/run/nagios4/nagios.pid
  • [Unit]

Additionnal notes

Nothing here.