Skip to content

Commit

Permalink
common: add user/group to sysd only if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
rpelisse committed Sep 27, 2023
1 parent 7e9087c commit 3ecadf9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/amq_streams_common/templates/service_systemd.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ After=syslog.target network.target
{% endif %}
{% if service_systemd_env_file is defined %}EnvironmentFile=-{{ service_systemd_env_file }}
{% endif %}
User={{ service_user }}
Group={{ service_group }}
{% if service_user is defined %}User={{ service_user }}
{% endif %}
{% if service_group is defined %}Group={{ service_group }}
{% endif %}
#
#
ExecStart={{ server_start }} {{ server_config }} {% if server_extra_args is defined %}{{ server_extra_args }}{% endif %}
Expand Down

0 comments on commit 3ecadf9

Please sign in to comment.