[Unit]
Description=Nagios Core 4.5.12
Documentation=https://www.nagios.org/documentation
After=network.target local-fs.target

[Service]
Type=forking
ExecStartPre=@bindir@/nagios -v @sysconfdir@/nagios.cfg
ExecStart=@bindir@/nagios -d @sysconfdir@/nagios.cfg
ExecStop=@BIN_KILL@ -s TERM ${MAINPID}
ExecStopPost=@BIN_RM@ -f @localstatedir@/rw/nagios.cmd
ExecReload=@bindir@/nagios -v @sysconfdir@/nagios.cfg
ExecReload=@BIN_KILL@ -s HUP ${MAINPID}

[Install]
WantedBy=multi-user.target
