nagios4/startup/default-service.in
2019-08-03 18:28:19 +02:00

16 lines
430 B
Plaintext

[Unit]
Description=Nagios Core 4.4.4
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=@BIN_KILL@ -s HUP ${MAINPID}
[Install]
WantedBy=multi-user.target