xoxys.minio/templates/etc/systemd/system/minio.service.j2

39 lines
914 B
Plaintext
Raw Normal View History

2020-05-19 08:18:29 +00:00
#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 }}\""
2020-05-20 07:45:21 +00:00
ExecStart={{ minio_base_dir }}/minio server $MINIO_OPTS $MINIO_VOLUMES
2020-05-19 08:18:29 +00:00
Restart=always
2020-05-20 20:30:48 +00:00
# Avoid noisy crashloops
StartLimitInterval=60
StartLimitBurst=5
2020-05-19 08:18:29 +00:00
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