xoxys.minio/templates/etc/systemd/system/minio.service.j2
Robert Kaussow 20f78098d1
Some checks failed
continuous-integration/drone/push Build is failing
fix systemd startlimit attributes
2020-05-20 22:30:48 +02:00

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