mirror of https://github.com/Icinga/icinga2.git
Revert "Fix obsolete parameter in Systemd script"
This reverts commit 592fb22c7f
.
We have the problem that Systemd doesn't expand shell variables
into our environment.
During the upgrade cycle this would maybe render a wrong PID file
location, thus resulting in wrong 'safe-reload' behaviour.
This is only for a clean upgrade path from 2.8.x to 2.9.0,
the proper fix is to ensure that the sysconfig file is empty
and keep our own defaults, or modified from the user.
refs #6434
This commit is contained in:
parent
61ea81ab6e
commit
c4c6f2064d
|
@ -5,10 +5,10 @@ After=syslog.target network-online.target postgresql.service mariadb.service car
|
|||
[Service]
|
||||
Type=notify
|
||||
EnvironmentFile=@ICINGA2_SYSCONFIGFILE@
|
||||
ExecStartPre=@CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs
|
||||
ExecStartPre=@CMAKE_INSTALL_PREFIX@/lib/icinga2/prepare-dirs @ICINGA2_SYSCONFIGFILE@
|
||||
ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon -e ${ICINGA2_ERROR_LOG}
|
||||
PIDFile=@ICINGA2_RUNDIR@/icinga2/icinga2.pid
|
||||
ExecReload=@CMAKE_INSTALL_PREFIX@/lib/icinga2/safe-reload
|
||||
ExecReload=@CMAKE_INSTALL_PREFIX@/lib/icinga2/safe-reload @ICINGA2_SYSCONFIGFILE@
|
||||
TimeoutStartSec=30m
|
||||
|
||||
# Systemd >228 enforces a lower process number for services.
|
||||
|
|
Loading…
Reference in New Issue