Guest User

Untitled

a guest
Jan 26th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  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.  
  8. [Service]
  9. WorkingDirectory=/usr/local/
  10.  
  11. User=xxxxxxxxx
  12. Group=xxxxxxxxx
  13.  
  14. EnvironmentFile=/etc/default/minio
  15. ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
  16.  
  17. ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
  18.  
  19. # Let systemd restart this service always
  20. Restart=always
  21.  
  22. # Specifies the maximum file descriptor number that can be opened by this process
  23. LimitNOFILE=65536
  24.  
  25. # Disable timeout logic and wait until process is stopped
  26. TimeoutStopSec=infinity
  27. SendSIGKILL=no
  28.  
  29. [Install]
  30. WantedBy=multi-user.target
  31.  
  32. # Built for ${project.name}-${project.version} (${project.name})
  33.  
Advertisement
Add Comment
Please, Sign In to add comment