From: Michael Friedrich Date: Thu, 16 Oct 2014 10:08:21 +0000 (+0200) Subject: Fix systemd unit file X-Git-Tag: v2.2.0~371 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a895a6236a6347fb2633e0d24e66c9bb4b6bf178;p=icinga2 Fix systemd unit file refs #7246 --- diff --git a/etc/initsystem/icinga2.service.cmake b/etc/initsystem/icinga2.service.cmake index d97027024..1de5e75a9 100644 --- a/etc/initsystem/icinga2.service.cmake +++ b/etc/initsystem/icinga2.service.cmake @@ -6,7 +6,7 @@ After=syslog.target postgresql.service mariadb.service carbon-cache.service Type=forking EnvironmentFile=@ICINGA2_SYSCONFIGFILE@ ExecStartPre=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2-prepare-dirs @ICINGA2_SYSCONFIGFILE@ -ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon -c ${ICINGA2_CONFIG_FILE} -d -e ${ICINGA2_ERROR_LOG} -u ${ICINGA2_USER} -g ${ICINGA2_GROUP} +ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 daemon -c ${ICINGA2_CONFIG_FILE} -d -e ${ICINGA2_ERROR_LOG} PIDFile=@ICINGA2_RUNDIR@/icinga2/icinga2.pid ExecReload=/bin/kill -HUP $MAINPID