ansible-role-minio/templates/minio.conf.upstart.j2

22 lines
489 B
Django/Jinja

description "MinIO object storage server"
start on runlevel [2345]
stop on runlevel [016]
console log
setuid {{ minio_username }}
setgid {{ minio_username }}
respawn
respawn limit 10 5
env MINIOVOLUMES="{{ minio_volumes }}"
env MINIO_OPTS="{% if minio_dedicated_console }}--console-address :{{ minio_console_port }}{% endif %} --certs-dir {{ minio_tls_certs_dir }}"
limit nofile 1048576 1048576
script
exec {{ minio_executable }} server $MINIO_OPTS $MINIOVOLUMES
end script