Open vhsantos opened 4 years ago
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 https://github.com/centreon/centreon-engine/pull/172.
Hi @UrBnW ,
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:
[Unit]
[...]
After=network.target
[Install]
[...]
WantedBy=multi-user.target
the first is only a good practice, but the second is necessary if we want to enable the centreon-engine service at boot.
attentive.
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".