Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Commit 1addfeb

Browse files
authored
Fix templates of systemd units for TGZ packages (#393)
Closes #391 Before the patch, systemd files used the `tarantool` user and the `tarantool` group. Not, this uses the value of the `cartridge_app_user` and `cartridge_app_group` variables.
1 parent eca5ca1 commit 1addfeb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ README.md to use the newest tag with new release
2121
- Fixed the ability to roll back to the previous TGZ package
2222
- Fixed backup folder permissions
2323
- Handle empty values in `helpers.py`
24+
- Fixed templates of systemd units for TGZ packages
2425

2526
## [1.11.0] - 2021-07-30
2627

templates/app-stateboard.service.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Type=simple
77
ExecStart=/usr/bin/env {{ systemd_units_info.stateboard_tarantool_binary }} {{ systemd_units_info.stateboard_entrypoint }}
88
Restart=on-failure
99
RestartSec=2
10-
User=tarantool
11-
Group=tarantool
10+
User={{ cartridge_app_user }}
11+
Group={{ cartridge_app_group }}
1212

1313
Environment=TARANTOOL_APP_NAME={{ systemd_units_info.stateboard_name }}
1414
Environment=TARANTOOL_CFG={{ cartridge_conf_dir }}

templates/[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Type=simple
77
ExecStart=/usr/bin/env {{ systemd_units_info.instance_tarantool_binary }} {{ systemd_units_info.instance_entrypoint }}
88
Restart=on-failure
99
RestartSec=2
10-
User=tarantool
11-
Group=tarantool
10+
User={{ cartridge_app_user }}
11+
Group={{ cartridge_app_group }}
1212

1313
Environment=TARANTOOL_APP_NAME={{ cartridge_app_name }}
1414
Environment=TARANTOOL_CFG={{ cartridge_conf_dir }}

0 commit comments

Comments
 (0)