]> granicus.if.org Git - icinga2/blobdiff - etc/systemd/icinga2.service.cmake
Reloading with systemd is fixed now.
[icinga2] / etc / systemd / icinga2.service.cmake
index a0a570d6871b5048ddb95a8e11b3cfc05078a6e9..7fc386bd59cc30b874fc57280a56d18ab0029174 100644 (file)
@@ -8,9 +8,7 @@ EnvironmentFile=/etc/sysconfig/icinga2
 # ExecStartPre=  TODO: execute the mkdir & chown/chmod stuff, ideally in a separate script, used by both init.d and systemd
 ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/icinga2 -c ${ICINGA2_CONFIG_FILE} -d -e ${ICINGA2_ERROR_LOG} -u ${ICINGA2_USER} -g ${ICINGA2_GROUP}
 PIDFile=@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/run/icinga2/icinga2.pid
-
-# TODO: reload not working, seems like systemd kills the newly forked daemon process
-#ExecReload=/bin/kill -HUP $MAINPID
+ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]
 WantedBy=multi-user.target