Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
enh(systemd): use /etc/sysconfig/cent* files to get options
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinsivy committed Apr 4, 2019
1 parent 4aedca7 commit 6584a43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tmpl/install/redhat/centcore.systemd
Original file line number Diff line number Diff line change
Expand Up @@ -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
WantedBy=centreon.service
5 changes: 3 additions & 2 deletions tmpl/install/redhat/centreontrapd.systemd
Original file line number Diff line number Diff line change
Expand Up @@ -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
WantedBy=centreon.service

0 comments on commit 6584a43

Please sign in to comment.