nagios4/startup/default-service.in

16 lines
430 B
Plaintext
Raw Normal View History

2019-04-18 17:09:18 +02:00
[Unit]
Description=Nagios Core 4.4.3
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