-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystemd.path.j2
56 lines (54 loc) · 1.21 KB
/
systemd.path.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[Unit]
Description={{ description }}
Requires={{ path_exec_unit }}
ConditionUser={{ unit_condition_user }}
{%- if unit_on_failure %}
OnFailure={{ unit_on_failure }}
{%- endif %}
{%- if unit_after %}
OnSuccess={{ unit_on_success }}
{%- endif %}
{%- if unit_wants %}
Wants={{ unit_wants }}
{%- endif %}
{%- if unit_requires %}
Requires={{ unit_requires }}
{%- endif %}
{%- if unit_bindsto %}
BindsTo={{ unit_bindsto }}
{%- endif %}
{%- if unit_before %}
Before={{ unit_before }}
{%- endif %}
{%- if unit_after %}
After={{ unit_after }}
{%- endif %}
[Path]
Unit={{ path_exec_unit }}
{%- if path_exists %}
PathExists={{ path_exists }}
{%- endif %}
{%- if path_exists_glob %}
PathExistsGlob={{ path_exists_glob }}
{%- endif %}
{%- if path_changed %}
PathChanged={{ path_changed }}
{%- endif %}
{%- if path_modified %}
PathModified={{ path_modified }}
{%- endif %}
{%- if path_directory_not_empty %}
DirectoryNotEmpty={{ path_directory_not_empty }}
{%- endif %}
{%- if not is_template %}
[Install]
{%- if install_wanted_by %}
WantedBy={{ install_wanted_by }}
{%- endif %}
{%- if install_required_by %}
RequiredBy={{ install_required_by }}
{%- endif %}
{%- if install_upheld_by %}
UpheldBy={{ install_upheld_by }}
{%- endif %}
{%- endif %}