|
12 | 12 | <criterion comment="{{{ PACKAGENAME }}} removed" test_ref="{{{ package_removed_test_id }}}" />
|
13 | 13 | <criteria operator="AND" comment="service {{{ SERVICENAME }}} is not configured to start">
|
14 | 14 | <criterion comment="{{{ SERVICENAME }}} is not running" test_ref="test_service_not_running_{{{ SERVICENAME }}}" />
|
15 |
| - {{%- if MASK_SERVICE %}} |
16 | 15 | <criterion comment="Property LoadState of service {{{ SERVICENAME }}} is masked" test_ref="test_service_loadstate_is_masked_{{{ SERVICENAME }}}" />
|
17 | 16 | <criterion comment="Property FragmentPath of service {{{ SERVICENAME }}} is set to /dev/null" test_ref="test_service_fragmentpath_is_dev_null_{{{ SERVICENAME }}}" />
|
18 |
| - {{%- else %}} |
19 |
| - <criterion comment="{{{ SERVICENAME }}} not wanted by multi-user.target" test_ref="test_{{{ SERVICENAME }}}_not_wanted_by_multi_user_target" /> |
20 |
| - <criterion comment="{{{ SERVICENAME }}} socket not wanted by multi-user.target" test_ref="test_{{{ SERVICENAME }}}_socket_not_wanted_by_multi_user_target" /> |
21 |
| - {{%- endif %}} |
22 | 17 | </criteria>
|
23 | 18 | </criteria>
|
24 | 19 | </definition>
|
25 | 20 |
|
26 |
| - <linux:systemdunitdependency_test check="all" check_existence="any_exist" comment="systemd test" id="test_{{{ SERVICENAME }}}_not_wanted_by_multi_user_target" version="1"> |
27 |
| - <linux:object object_ref="object_multi_user_target_for_{{{ SERVICENAME }}}_disabled" /> |
28 |
| - <linux:state state_ref="state_systemd_{{{ SERVICENAME }}}_off"/> |
29 |
| - </linux:systemdunitdependency_test> |
30 |
| - <linux:systemdunitdependency_object id="object_multi_user_target_for_{{{ SERVICENAME }}}_disabled" comment="list of dependencies of multi-user.target" version="1"> |
31 |
| - <linux:unit>multi-user.target</linux:unit> |
32 |
| - </linux:systemdunitdependency_object> |
33 |
| - <linux:systemdunitdependency_state id="state_systemd_{{{ SERVICENAME }}}_off" comment="{{{ SERVICENAME }}} service is not listed in the dependencies" version="1"> |
34 |
| - <linux:dependency entity_check="none satisfy">{{{ SERVICENAME }}}.service</linux:dependency> |
35 |
| - </linux:systemdunitdependency_state> |
36 |
| - |
37 |
| - <linux:systemdunitdependency_test check="all" check_existence="any_exist" comment="systemd test" id="test_{{{ SERVICENAME }}}_socket_not_wanted_by_multi_user_target" version="1"> |
38 |
| - <linux:object object_ref="object_multi_user_target_for_{{{ SERVICENAME }}}_socket_disabled" /> |
39 |
| - <linux:state state_ref="state_systemd_{{{ SERVICENAME }}}_socket_off"/> |
40 |
| - </linux:systemdunitdependency_test> |
41 |
| - <linux:systemdunitdependency_object id="object_multi_user_target_for_{{{ SERVICENAME }}}_socket_disabled" comment="list of dependencies of multi-user.target" version="1"> |
42 |
| - <linux:unit>multi-user.target</linux:unit> |
43 |
| - </linux:systemdunitdependency_object> |
44 |
| - <linux:systemdunitdependency_state id="state_systemd_{{{ SERVICENAME }}}_socket_off" comment="{{{ SERVICENAME }}} socket is not listed in the dependencies" version="1"> |
45 |
| - <linux:dependency entity_check="none satisfy">{{{ SERVICENAME }}}.socket</linux:dependency> |
46 |
| - </linux:systemdunitdependency_state> |
47 |
| - |
48 | 21 | <linux:systemdunitproperty_test id="test_service_not_running_{{{ SERVICENAME }}}" check="all" check_existence="any_exist" comment="Test that the {{{ SERVICENAME }}} service is not running" version="1">
|
49 | 22 | <linux:object object_ref="obj_service_not_running_{{{ SERVICENAME }}}"/>
|
50 | 23 | <linux:state state_ref="state_service_not_running_{{{ SERVICENAME }}}"/>
|
|
56 | 29 | <linux:systemdunitproperty_state id="state_service_not_running_{{{ SERVICENAME }}}" version="1" comment="{{{ SERVICENAME }}} is not running">
|
57 | 30 | <linux:value>inactive</linux:value>
|
58 | 31 | </linux:systemdunitproperty_state>
|
59 |
| -{{%- if MASK_SERVICE %}} |
60 | 32 | <linux:systemdunitproperty_test id="test_service_loadstate_is_masked_{{{ SERVICENAME }}}" check="all" check_existence="any_exist" comment="Test that the property LoadState from the service {{{ SERVICENAME }}} is masked" version="1">
|
61 | 33 | <linux:object object_ref="obj_service_loadstate_is_masked_{{{ SERVICENAME }}}"/>
|
62 | 34 | <linux:state state_ref="state_service_loadstate_is_masked_{{{ SERVICENAME }}}"/>
|
|
80 | 52 | <linux:systemdunitproperty_state id="state_service_fragmentpath_is_dev_null_{{{ SERVICENAME }}}" version="1" comment="FragmentPath is set to /dev/null">
|
81 | 53 | <linux:value>/dev/null</linux:value>
|
82 | 54 | </linux:systemdunitproperty_state>
|
83 |
| -{{%- endif %}} |
84 |
| - |
85 | 55 |
|
86 | 56 | {{% else %}}
|
87 | 57 |
|
|
0 commit comments