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:
parent
b8cfeef09a
commit
86fe9f876f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue