1[Unit]
2Description=Icinga host/service/network monitoring system
3Requires=network-online.target
4After=syslog.target network-online.target postgresql.service mariadb.service carbon-cache.service carbon-relay.service
5
6[Service]
7Type=notify
8NotifyAccess=all
9Environment="ICINGA2_ERROR_LOG=@ICINGA2_LOGDIR@/error.log"
10EnvironmentFile=@ICINGA2_SYSCONFIGFILE@
11ExecStartPre=@CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs @ICINGA2_SYSCONFIGFILE@
12ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon --close-stdio -e ${ICINGA2_ERROR_LOG}
13PIDFile=@ICINGA2_INITRUNDIR@/icinga2.pid
14ExecReload=@CMAKE_INSTALL_PREFIX@/lib/icinga2/safe-reload @ICINGA2_SYSCONFIGFILE@
15TimeoutStartSec=30m
16KillMode=mixed
17
18# Systemd >228 enforces a lower process number for services.
19# Depending on the distribution and Systemd version, this must
20# be explicitly raised. Packages will set the needed values
21# into /etc/systemd/system/icinga2.service.d/limits.conf
22#
23# Please check the troubleshooting documentation for further details.
24# The values below can be used as examples for customized service files.
25
26#TasksMax=infinity
27#LimitNPROC=62883
28
29[Install]
30WantedBy=multi-user.target
31