]> granicus.if.org Git - icinga2/commitdiff
Revert "Fix obsolete parameter in Systemd script" 6439/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 17 Jul 2018 07:59:59 +0000 (09:59 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 17 Jul 2018 12:10:26 +0000 (14:10 +0200)
This reverts commit 592fb22c7fe4d291e630a2b6126312d088ce60d7.

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

etc/initsystem/icinga2.service.cmake

index 27744e5aa94ba6398b96adb7a231c0ad2b793908..771c98f7b3835afb984099e7c61768ff46335071 100644 (file)
@@ -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.