Skip to content

Commit

Permalink
feat: Allow multiple exec_start statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Apr 19, 2024
1 parent ca82f2d commit a280938
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/systemd_timer/templates/service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ ExecStartPre={{ item }}
ExecStartPre={{ timer.exec_start_pre }}
{% endif %}
{% endif %}
{% if timer.exec_start is iterable and timer.exec_start is not string %}
{% for item in timer.exec_start %}
ExecStart={{ item }}
{% endfor %}
{% else %}
ExecStart={{ timer.exec_start }}
{% endif %}
{% if timer.exec_start_post is defined %}
{% if timer.exec_start_post is iterable and timer.exec_start_post is not string %}
{% for item in timer.exec_start_post %}
Expand Down

0 comments on commit a280938

Please sign in to comment.