39 lines
914 B
Django/Jinja
39 lines
914 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
{{ ansible_managed | comment }}
|
|
[Unit]
|
|
Description=Minio S3 Object Storage
|
|
Documentation=https://docs.minio.io
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
After=syslog.target
|
|
|
|
[Service]
|
|
WorkingDirectory={{ minio_base_dir }}
|
|
|
|
User={{ minio_user }}
|
|
Group={{ minio_group }}
|
|
|
|
PermissionsStartOnly=true
|
|
EnvironmentFile={{ __minio_sysconfig }}
|
|
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in {{ __minio_sysconfig }}\""
|
|
ExecStart={{ minio_base_dir }}/minio server $MINIO_OPTS $MINIO_VOLUMES
|
|
|
|
Restart=always
|
|
# Avoid noisy crashloops
|
|
StartLimitInterval=60
|
|
StartLimitBurst=5
|
|
|
|
StandardOutput=journal
|
|
StandardError=inherit
|
|
|
|
# Specifies the maximum file descriptor number that can be opened by this process
|
|
LimitNOFILE=65536
|
|
|
|
TimeoutStopSec=0
|
|
KillSignal=SIGTERM
|
|
SendSIGKILL=no
|
|
SuccessExitStatus=0
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|