From 6584a43fd7551470f0d6e1d351c3fbac2294c766 Mon Sep 17 00:00:00 2001 From: Laurent Pinsivy Date: Wed, 3 Apr 2019 10:30:33 +0100 Subject: [PATCH] enh(systemd): use /etc/sysconfig/cent* files to get options --- tmpl/install/redhat/centcore.systemd | 5 +++-- tmpl/install/redhat/centreontrapd.systemd | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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