Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Move files from tmp dir to avoid deletion during tmp dir cleanup #119

Merged
merged 1 commit into from
Mar 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions src/templates/cromwell/cromwell-resources.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Resources:
state_file = /var/lib/awslogs/agent-state

[cromwell-server]
file = /tmp/cromwell-server.log
file = /home/ec2-user/cromwell-server.log
log_group_name = cromwell-server
log_stream_name = %%INSTANCE-ID%%
mode: 000664
Expand Down Expand Up @@ -462,30 +462,30 @@ Resources:
group: "ec2-user"
content: |
[unix_http_server]
file=/tmp/supervisor.sock ; the path to the socket file
file=/home/ec2-user/supervisor.sock ; the path to the socket file

[supervisord]
logfile=/tmp/supervisord.log ; main log file; default $CWD/supervisord.log
logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
loglevel=info ; log level; default info; others: debug,warn,trace
pidfile=/tmp/supervisord.pid ; supervisord pidfile; default supervisord.pid
nodaemon=false ; start in foreground if true; default false
minfds=1024 ; min. avail startup file descriptors; default 1024
minprocs=200 ; min. avail process descriptors;default 200
logfile=/home/ec2-user/supervisord.log ; main log file; default $CWD/supervisord.log
logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
loglevel=info ; log level; default info; others: debug,warn,trace
pidfile=/home/ec2-user/supervisord.pid ; supervisord pidfile; default supervisord.pid
nodaemon=false ; start in foreground if true; default false
minfds=1024 ; min. avail startup file descriptors; default 1024
minprocs=200 ; min. avail process descriptors;default 200

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
serverurl=unix:///home/ec2-user/supervisor.sock ; use a unix:// URL for a unix socket

[program:cromwell-server]
command=java -Dconfig.file=cromwell.conf -XX:MaxRAMPercentage=85.0 -jar cromwell.jar server ; the program (relative uses PATH, can take args)
directory=/home/ec2-user ; directory to cwd to before exec (def no cwd)
user=ec2-user ; setuid to this UNIX account to run the program
redirect_stderr=true ; redirect proc stderr to stdout (default false)
stdout_logfile=/tmp/cromwell-server.log ; stdout log path, NONE for none; default AUTO
stdout_logfile=/home/ec2-user/cromwell-server.log ; stdout log path, NONE for none; default AUTO

"/etc/nginx/nginx.conf":
mode: "000644"
Expand Down Expand Up @@ -572,6 +572,12 @@ Resources:
}
}

"/home/ec2-user/supervisord.log":
content: "\n"
mode: "000664"
owner: "ec2-user"
group: "ec2-user"

commands:
00_get_instance_id:
command: curl -s http://169.254.169.254/latest/meta-data/instance-id/ > /etc/instance-id
Expand Down