You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
The opened issue, must be code related. GitHub is not meant for support. Feel free to check the CONTRIBUTING section for more details.
Versions
20.04.4
Operating System
Ubuntu/Debian
How the the component has been installed and versions
From sources
Description
After install the centengine in a remote poller, the service not start on boot (but work well if you start it manually), that is because the systemd script depends of centreon and cbd services to be started before. But in this case (a remote poller), the server don't have this services installed, only the centengine.
Steps to Reproduce
Please describe precisely the steps to reproduce the encountered issue.
clone the centengine repo
compile and install it
export the configuration from central poller
check that centengine is working in the remote poller
reboot the server
centengine wont be running.
Describe the received result
sudo journalctl -u centengine
systemd[1]: centengine.service: Unit cannot be reloaded because it is inactive.
Changing the systemd script (centengine.service) will work, but maybe it will generate problems in a server with centreon/cbd/centengine services. Perhaps an alternative should be to create a specific systemd script to be used when the installation are "remote poller only".
After does not mean Wants, so After=cbd.service will have no impact if you don't have cbd service on your system.
This specific cbd rule has been added thanks to #172.
you are correct about that "After" don't create a service dependency, my idea in this case was to create a clear systemd script to be used in a centreon-engine only.
Anyway, to avoid to have 02 different files:
one to centreon-engine standalone
and other to centreon-engine + centreon
a better solution is only to add this lines in the actual systemd script:
BUG REPORT INFORMATION
Prerequisites
Versions
20.04.4
Operating System
Ubuntu/Debian
How the the component has been installed and versions
Description
After install the centengine in a remote poller, the service not start on boot (but work well if you start it manually), that is because the systemd script depends of centreon and cbd services to be started before. But in this case (a remote poller), the server don't have this services installed, only the centengine.
Steps to Reproduce
Please describe precisely the steps to reproduce the encountered issue.
Describe the received result
Describe the expected result
Workaround
Changing the systemd script (centengine.service) will work, but maybe it will generate problems in a server with centreon/cbd/centengine services. Perhaps an alternative should be to create a specific systemd script to be used when the installation are "remote poller only".
The text was updated successfully, but these errors were encountered: