mirror of
https://github.com/Icinga/icinga2.git
synced 2025-11-01 04:04:08 +01:00
Icinga2 fails with 'Cannot bind TCP socket for host', if other services requiring network.target are not installed. Signed-off-by: Jean Flach <jean-marcel.flach@netways.de> fixes #10968
15 lines
551 B
CMake
15 lines
551 B
CMake
[Unit]
|
|
Description=Icinga host/service/network monitoring system
|
|
After=syslog.target network.target postgresql.service mariadb.service carbon-cache.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
EnvironmentFile=@ICINGA2_SYSCONFIGFILE@
|
|
ExecStartPre=@CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs @ICINGA2_SYSCONFIGFILE@
|
|
ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon -d -e ${ICINGA2_ERROR_LOG}
|
|
PIDFile=@ICINGA2_RUNDIR@/icinga2/icinga2.pid
|
|
ExecReload=@CMAKE_INSTALL_PREFIX@/lib/icinga2/safe-reload @ICINGA2_SYSCONFIGFILE@
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|