diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:34:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:34:54 +0000 |
commit | 0915b3ef56dfac3113cce55a59a5765dc94976be (patch) | |
tree | a8fea11d50b4f083e1bf0f90025ece7f0824784a /etc/initsystem/icinga2.service.cmake | |
parent | Initial commit. (diff) | |
download | icinga2-0915b3ef56dfac3113cce55a59a5765dc94976be.tar.xz icinga2-0915b3ef56dfac3113cce55a59a5765dc94976be.zip |
Adding upstream version 2.13.6.upstream/2.13.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'etc/initsystem/icinga2.service.cmake')
-rw-r--r-- | etc/initsystem/icinga2.service.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/etc/initsystem/icinga2.service.cmake b/etc/initsystem/icinga2.service.cmake new file mode 100644 index 0000000..ca85930 --- /dev/null +++ b/etc/initsystem/icinga2.service.cmake @@ -0,0 +1,30 @@ +[Unit] +Description=Icinga host/service/network monitoring system +Requires=network-online.target +After=syslog.target network-online.target icingadb-redis.service postgresql.service mariadb.service carbon-cache.service carbon-relay.service + +[Service] +Type=notify +NotifyAccess=all +Environment="ICINGA2_ERROR_LOG=@ICINGA2_LOGDIR@/error.log" +EnvironmentFile=@ICINGA2_SYSCONFIGFILE@ +ExecStartPre=@CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs @ICINGA2_SYSCONFIGFILE@ +ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon --close-stdio -e ${ICINGA2_ERROR_LOG} +PIDFile=@ICINGA2_INITRUNDIR@/icinga2.pid +ExecReload=@CMAKE_INSTALL_PREFIX@/lib/icinga2/safe-reload @ICINGA2_SYSCONFIGFILE@ +TimeoutStartSec=30m +KillMode=mixed + +# Systemd >228 enforces a lower process number for services. +# Depending on the distribution and Systemd version, this must +# be explicitly raised. Packages will set the needed values +# into /etc/systemd/system/icinga2.service.d/limits.conf +# +# Please check the troubleshooting documentation for further details. +# The values below can be used as examples for customized service files. + +#TasksMax=infinity +#LimitNPROC=62883 + +[Install] +WantedBy=multi-user.target |