2016-07-11 06:55:40 -04:00
|
|
|
# Readme
|
|
|
|
Service script for minio service for systemd.
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
```
|
|
|
|
mkdir /etc/minio/
|
|
|
|
mkdir -p /usr/share/minio/bin/
|
2016-08-05 11:02:11 -04:00
|
|
|
wget -O /usr/share/minio/bin/minio http://...
|
|
|
|
chmod +x /usr/share/minio/bin/minio
|
2016-07-11 06:55:40 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
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/
|
|
|
|
```
|
2016-08-16 10:57:14 -04:00
|
|
|
( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio/master/dist/linux-systemd/minio.service )
|
2016-07-11 06:55:40 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
Enable startup on boot
|
|
|
|
```
|
|
|
|
systemctl enable minio.service
|
|
|
|
```
|
|
|
|
|