minio.service 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. [Unit]
  2. Description=MinIO
  3. Documentation=https://docs.min.io
  4. Wants=network-online.target
  5. After=network-online.target
  6. AssertFileIsExecutable=/usr/local/bin/minio
  7. [Service]
  8. WorkingDirectory=/usr/local/
  9. User=minio-user
  10. Group=minio-user
  11. EnvironmentFile=/etc/default/minio
  12. ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
  13. ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
  14. # Let systemd restart this service always
  15. Restart=always
  16. # Specifies the maximum file descriptor number that can be opened by this process
  17. LimitNOFILE=65536
  18. # Specifies the maximum number of threads this process can create
  19. TasksMax=infinity
  20. # Disable timeout logic and wait until process is stopped
  21. TimeoutStopSec=infinity
  22. SendSIGKILL=no
  23. [Install]
  24. WantedBy=multi-user.target
  25. # Built for ${project.name}-${project.version} (${project.name})