Closed aquette closed 7 years ago
Was this tested by e.g. systemctl disable
and systemctl enable
of this unit? It seems that requiring and being wanted by the same unit is a logical loop and so would cause issues or be denied at runtime. Maybe Requisite
is a stronger better option - if this proves to be a problem?
Solution: Add a WantedBy=fty-asset.service The Requires and After "fty-asset.service" allows to express the dependency on fty-asset.service. This means that stopping fty-asset will also stop fty-sensor-gpio. However, to automatically restart fty-sensor-gpio when fty-asset is (re)started, the WantedBy field is required
Signed-off-by: Arnaud Quette ArnaudQuette@Eaton.com