minio/dist/linux-systemd
2016-10-21 20:56:56 -07:00
..
distributed dist: Adding systemd script for running Minio distributed. (#3034) 2016-10-21 20:56:56 -07:00
minio.service Point link of the docs to docs.minio.io. (#3025) 2016-10-20 22:28:22 -07:00
readme.md minor cleanup 2016-08-24 22:54:34 -07:00

Readme

Service script for minio service for systemd.

Installation

mkdir /etc/minio/
mkdir -p /usr/share/minio/bin/
wget -O /usr/share/minio/bin/minio http://...
chmod +x /usr/share/minio/bin/minio

Create minio user.

useradd minio

Create default configuration. Don't forget to update MINIO_VOLUMES with the correct path(s).

cat <<EOT >> /etc/default/minio
MINIO_OPTS="--address :9000"
MINIO_VOLUMES="/tmp/minio/"
EOT

Systemctl

Put minio.service in /etc/systemd/system/

( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio/master/dist/linux-systemd/minio.service )

Enable startup on boot

systemctl enable minio.service