ITOPSENG-647 put product service file in the default path to allow systemctl mask and other linking operations to work properly

This commit is contained in:
Brett Meehan
2020-05-21 10:17:22 +10:00
parent 0fbc7609a1
commit 7b9e9e2328
5 changed files with 9 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_service_file(host):
f = host.file('/etc/systemd/system/bitbucket.service')
f = host.file('/usr/lib/systemd/system/bitbucket.service')
assert f.contains("^ExecStart=/opt/atlassian/bitbucket/current/bin/start-bitbucket.sh -fg --no-search$")
assert f.contains("^UMask=0027$")
assert f.contains("^LimitNOFILE=4096$")

View File

@@ -7,7 +7,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_service_file(host):
f = host.file('/etc/systemd/system/jira-software.service')
f = host.file('/usr/lib/systemd/system/jira-software.service')
assert f.contains("^ExecStart=/opt/atlassian/jira-software/current/bin/start-jira.sh -fg$")
assert f.user == 'root'
assert f.group == 'root'

View File

@@ -7,7 +7,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_service_file(host):
f = host.file('/etc/systemd/system/synchrony.service')
f = host.file('/usr/lib/systemd/system/synchrony.service')
assert f.contains("^ExecStart=/opt/atlassian/bin/start-synchrony$")
assert f.contains("^EnvironmentFile=/etc/atl$")
assert f.contains("^EnvironmentFile=/etc/atl.synchrony$")

View File

@@ -3,7 +3,7 @@
- name: "Install systemd service file"
template:
src: "product.service.j2"
dest: "/etc/systemd/system/{{ atl_systemd_service_name }}"
dest: "/usr/lib/systemd/system/{{ atl_systemd_service_name }}"
owner: root
group: root
mode: 0640