welcome: please sign in
location: Minio

This is my memo on seting up Minio servers.

Systemd Service

Systemd service file is modified from this version.

   1 [Unit]
   2 Description=Minio
   3 Documentation=https://docs.minio.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=minio
  12 Group=minio
  13 
  14 PermissionsStartOnly=true
  15 
  16 EnvironmentFile=-/etc/default/minio
  17 ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\""
  18 
  19 ExecStart=/usr/local/bin/minio server -C /etc/minio $MINIO_OPTS $MINIO_VOLUMES
  20 
  21 # Let systemd restart this service after 10sec on exit.
  22 Restart=always
  23 RestartSec=10s
  24 
  25 StandardOutput=journal
  26 StandardError=inherit
  27 
  28 # Specifies the maximum file descriptor number that can be opened by this process
  29 LimitNOFILE=65536
  30 
  31 # Disable timeout logic and wait until process is stopped
  32 TimeoutStopSec=0
  33 
  34 # SIGTERM signal is used to stop Minio
  35 KillSignal=SIGTERM
  36 
  37 SendSIGKILL=no
  38 
  39 SuccessExitStatus=0
  40 
  41 [Install]
  42 WantedBy=multi-user.target

Config Files

Configs are placed into 2 places, following Debian's packaging style.

/etc/default/minio

   1 # Local export path.
   2 MINIO_VOLUMES="http://node1-in-cluster//path/to/storage"
   3 # Use if you want to run Minio on a custom port.
   4 #MINIO_OPTS="--address :9000"
   5 

/etc/minio

Copy everything from ~<minio user>/.minio to /etc/minio or let minio generate samples when starting for the 1st time.

Minio (last edited 2018-02-18 07:20:43 by AstroProfundis)

How many stars in your bowl, How many sorrows in your soul?
CopyRight © 2011-2017 Allen Zhong, under a CC BY-NC-ND 4.0 License. | IPv6 Enabled.