This unit is provided by:
Options
-
[Install]
-
WantedBy=multi-user.target
-
-
[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]
-
Description=nagios4
-
Documentation=man:nagios4
-
Additionnal notes
Nothing here.