diff --git a/tmpl/install/redhat/centcore.systemd b/tmpl/install/redhat/centcore.systemd index 6019eb740f5..87c9b22d69f 100644 --- a/tmpl/install/redhat/centcore.systemd +++ b/tmpl/install/redhat/centcore.systemd @@ -23,10 +23,11 @@ After=centreon.service ReloadPropagatedFrom=centreon.service [Service] -ExecStart=@CENTCORE_BINDIR@/centcore +EnvironmentFile=/etc/sysconfig/centcore +ExecStart=@CENTCORE_BINDIR@/centcore $OPTIONS ExecReload=/bin/kill -HUP $MAINPID Type=simple User=centreon [Install] -WantedBy=centreon.service \ No newline at end of file +WantedBy=centreon.service diff --git a/tmpl/install/redhat/centreontrapd.systemd b/tmpl/install/redhat/centreontrapd.systemd index e503cb4337f..4c72bda294d 100644 --- a/tmpl/install/redhat/centreontrapd.systemd +++ b/tmpl/install/redhat/centreontrapd.systemd @@ -23,10 +23,11 @@ After=centreon.service ReloadPropagatedFrom=centreon.service [Service] -ExecStart=@CENTREONTRAPD_BINDIR@/centreontrapd +EnvironmentFile=/etc/sysconfig/centreontrapd +ExecStart=@CENTREONTRAPD_BINDIR@/centreontrapd $OPTIONS ExecReload=/bin/kill -HUP $MAINPID Type=simple User=centreon [Install] -WantedBy=centreon.service \ No newline at end of file +WantedBy=centreon.service