library/roles/stanford-corenlp: Fixes to the startup scripts. We have to rely on the upstart 'chdir' directive to change the working directory.

This commit is contained in:
Andrea Dell'Amico 2018-02-14 10:54:44 +01:00
parent b8cfeef09a
commit 86fe9f876f
2 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,8 @@ respawn
respawn limit 10 5
setuid {{ stanford_corenlp_user }}
setgid {{ stanford_corenlp_user }}
chdir {{ stanford_corenlp_dist_dir }}
script
exec cd {{ stanford_corenlp_dist_dir }} {{ stanford_corenlp_cmd }} > {{ stanford_corenlp_log_dir }}/corenlp.log 2>&1
exec {{ stanford_corenlp_cmd }} > {{ stanford_corenlp_log_dir }}/corenlp.log 2>&1
end script

View File

@ -6,7 +6,8 @@ respawn
respawn limit 10 5
setuid {{ stanford_corenlp_user }}
setgid {{ stanford_corenlp_user }}
chdir {{ stanford_corenlp_dist_dir }}/tint
script
exec cd {{ stanford_corenlp_dist_dir }}/tint {{ tint_service_cmd }} > {{ stanford_corenlp_log_dir }}/tint.log 2>&1
exec {{ tint_service_cmd }} > {{ stanford_corenlp_log_dir }}/tint.log 2>&1
end script