mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-11-22 11:25:11 +01:00
38 lines
874 B
Django/Jinja
38 lines
874 B
Django/Jinja
[Unit]
|
|
Description=Minio
|
|
Documentation=https://docs.minio.io
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
AssertFileIsExecutable={{ minio_server_bin }}
|
|
|
|
[Service]
|
|
WorkingDirectory=/usr/local/
|
|
|
|
User={{ minio_user }}
|
|
Group={{ minio_group }}
|
|
|
|
PermissionsStartOnly=true
|
|
|
|
EnvironmentFile={{ minio_server_envfile }}
|
|
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in {{ minio_server_envfile }}\""
|
|
ExecStart={{ minio_server_bin }} server $MINIO_OPTS $MINIO_VOLUMES
|
|
|
|
StandardOutput=journal
|
|
StandardError=inherit
|
|
|
|
# Specifies the maximum file descriptor number that can be opened by this process
|
|
LimitNOFILE=65536
|
|
|
|
# Disable timeout logic and wait until process is stopped
|
|
TimeoutStopSec=0
|
|
|
|
# SIGTERM signal is used to stop Minio
|
|
KillSignal=SIGTERM
|
|
|
|
SendSIGKILL=no
|
|
|
|
SuccessExitStatus=0
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|