aboutsummaryrefslogtreecommitdiffstats
path: root/templates/teamspeak3-server.service.j2
diff options
context:
space:
mode:
authorStefan <stefan@sjoosten.nl>2016-08-23 16:34:45 +0200
committerGitHub <noreply@github.com>2016-08-23 16:34:45 +0200
commit5f98c5659e7341d07c849261abcf283184104568 (patch)
tree79f078b91ed8dece4638416016f662c6f7d7782c /templates/teamspeak3-server.service.j2
parent9c055a880110226dfae26db9a92a7d6c34b7bb11 (diff)
parent7a8008c94ce13515cd500d7b5ccfd1798690d765 (diff)
downloadansible-teamspeak-5f98c5659e7341d07c849261abcf283184104568.tar.gz
ansible-teamspeak-5f98c5659e7341d07c849261abcf283184104568.tar.xz
ansible-teamspeak-5f98c5659e7341d07c849261abcf283184104568.zip
Merge pull request #10 from EggieCode/issue-e1
Patches to fix issue #1. Thank you.
Diffstat (limited to 'templates/teamspeak3-server.service.j2')
-rw-r--r--templates/teamspeak3-server.service.j25
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/teamspeak3-server.service.j2 b/templates/teamspeak3-server.service.j2
index 4579694..03a8be3 100644
--- a/templates/teamspeak3-server.service.j2
+++ b/templates/teamspeak3-server.service.j2
@@ -7,8 +7,11 @@ Type=simple
User={{ teamspeak.user }}
Group={{ teamspeak.user }}
WorkingDirectory={{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64
-Environment='LD_LIBRARY_PATH="{{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/:$LD_LIBRARY_PATH"'
+{% if teamspeak.ini_file is not none %}
+ExecStart={{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/ts3server_minimal_runscript.sh inifile={{ teamspeak.ini_file }}
+{% else %}
ExecStart={{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/ts3server_minimal_runscript.sh
+{% endif %}
[Install]
WantedBy=multi-user.target