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
The service files provided in scripts/pkg/linux/cnspec.service and scripts/pkg/debian/cnspec.service,
use ConditionPathExists=/etc/opt/mondoo/ and ConditionFileNotEmpty=/etc/opt/mondoo/mondoo.yml.
This will silently skip the unit as if it were not applicable to the system and will not cause the unit to fail.
Is this the intended behavior?
The systemd documentation suggests Condition checks for skipping inapplicable
units and Assert checks for failing prerequisites. It seems to me that an assertion better fits the scenario
of cnspec not having access to a working directory or a configuration.
The text was updated successfully, but these errors were encountered:
The service files provided in
scripts/pkg/linux/cnspec.service
andscripts/pkg/debian/cnspec.service
,use
ConditionPathExists=/etc/opt/mondoo/
andConditionFileNotEmpty=/etc/opt/mondoo/mondoo.yml
.This will silently skip the unit as if it were not applicable to the system and will not cause the unit to fail.
Is this the intended behavior?
The systemd documentation suggests
Condition
checks for skipping inapplicableunits and
Assert
checks for failing prerequisites. It seems to me that an assertion better fits the scenarioof cnspec not having access to a working directory or a configuration.
The text was updated successfully, but these errors were encountered: