From 62dcee3b141f57f9c8c7f3d9b4796a0f505f4f80 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 31 Oct 2016 02:37:32 -0700 Subject: [PATCH] dist: Moved systemd scripts to minio-systemd. (#3136) Removing this from the repo. --- {dist/benchmark => buildscripts}/benchcmp.sh | 0 dist/linux-systemd/distributed/README.md | 51 -------------------- dist/linux-systemd/distributed/minio.service | 40 --------------- dist/linux-systemd/minio.service | 50 ------------------- dist/linux-systemd/readme.md | 36 -------------- 5 files changed, 177 deletions(-) rename {dist/benchmark => buildscripts}/benchcmp.sh (100%) delete mode 100644 dist/linux-systemd/distributed/README.md delete mode 100644 dist/linux-systemd/distributed/minio.service delete mode 100644 dist/linux-systemd/minio.service delete mode 100644 dist/linux-systemd/readme.md diff --git a/dist/benchmark/benchcmp.sh b/buildscripts/benchcmp.sh similarity index 100% rename from dist/benchmark/benchcmp.sh rename to buildscripts/benchcmp.sh diff --git a/dist/linux-systemd/distributed/README.md b/dist/linux-systemd/distributed/README.md deleted file mode 100644 index 1b2d3b14d..000000000 --- a/dist/linux-systemd/distributed/README.md +++ /dev/null @@ -1,51 +0,0 @@ - -- Systemd script is configured to run the binary from /usr/share/minio/bin/. - ```sh - $ mkdir -p /usr/share/minio/bin/ - ``` - -- Download the binary. Find the relevant links for the binary at https://minio.io/downloads/#minio-server. - ```sh - $ wget -O /usr/share/minio/bin/minio https://dl.minio.io/server/minio/release/linux-amd64/minio - ``` - -- Give execute permission to the Minio binary. - ```sh - $ chmod +x /usr/share/minio/bin/minio - ``` - -- Create user minio. Systemd is configured with User=minio . - ```sh - $ useradd minio - ``` - -- Create the Environment configuration file. - ```sh - $ cat <> /etc/default/minio.conf - ``` - - ``` - # Remote node configuration. - MINIO_VOLUMES=node1:/tmp/drive1 node2:/drive1 node3:/tmp/drive1 minio4:/tmp/drive1 - # Use if you want to run Minio on a custom port. - MINIO_OPTS="--address :9199" - # Access Key of the server. - MINIO_ACCESS_KEY=Server-Access-Key - # Secret key of the server. - MINIO_SECRET_KEY=Server-Secret-Key - - EOT - ``` - -- Download and put `minio.service` in `/etc/systemd/system/` - ```sh - $ ( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio/master/dist/linux-systemd/distributed/minio.service ) - ``` -- Enable startup on boot. - ```sh - $ systemctl enable minio.service - ``` - - - - diff --git a/dist/linux-systemd/distributed/minio.service b/dist/linux-systemd/distributed/minio.service deleted file mode 100644 index 9dd548b45..000000000 --- a/dist/linux-systemd/distributed/minio.service +++ /dev/null @@ -1,40 +0,0 @@ -[Unit] -Description=Minio -Documentation=https://docs.minio.io -Wants=network-online.target -After=network-online.target -AssertFileIsExecutable=/usr/share/minio/bin/minio - -[Service] -WorkingDirectory=/usr/share/minio/ - -User=minio -Group=minio - -PermissionsStartOnly=true - -EnvironmentFile=-/etc/default/minio.conf -ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in /etc/defaults/minio.conf\"" - -ExecStart=/usr/share/minio/bin/minio server $MINIO_OPTS $MINIO_VOLUMES - -StandardOutput=journal -StandardError=inherit - -# Specifies the maximum file descriptor number that can be opened by this process -LimitNOFILE=65536 - -# Disable timeout logic and wait until process is stopped -TimeoutStopSec=0 - -# SIGTERM signal is used to stop Minio -KillSignal=SIGTERM - -SendSIGKILL=no - -SuccessExitStatus=0 - -[Install] -WantedBy=multi-user.target - -# Built for ${project.name}-${project.version} (${project.name}) diff --git a/dist/linux-systemd/minio.service b/dist/linux-systemd/minio.service deleted file mode 100644 index b0f820fe1..000000000 --- a/dist/linux-systemd/minio.service +++ /dev/null @@ -1,50 +0,0 @@ -[Unit] -Description=Minio -Documentation=https://docs.minio.io -Wants=network-online.target -After=network-online.target -AssertPathExists=/etc/minio/ -AssertFileIsExecutable=/usr/share/minio/bin/minio - -[Service] -WorkingDirectory=/usr/share/minio/ - -User=minio -Group=minio - -PermissionsStartOnly=true - -EnvironmentFile=-/etc/default/minio -ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in /etc/defaults/minio\"" -ExecStartPre=/bin/bash -c "(for i in $MINIO_VOLUMES; do if [ ! -d $i ]; then echo \"Directory $i of variable MINIO_VOLUMES isn't an existing directory\" && false; exit; fi; done)" - -ExecStartPre=-/bin/chown -R root:minio /etc/minio/ -ExecStartPre=-/bin/chmod -R 660 /etc/minio/ -ExecStartPre=-/bin/chmod -R ug+X /etc/minio/ - -ExecStart=/usr/share/minio/bin/minio \ - --config-dir "/etc/minio/" \ - server \ - $MINIO_OPTS \ - $MINIO_VOLUMES - -StandardOutput=journal -StandardError=inherit - -# Specifies the maximum file descriptor number that can be opened by this process -LimitNOFILE=65536 - -# Disable timeout logic and wait until process is stopped -TimeoutStopSec=0 - -# SIGTERM signal is used to stop Minio -KillSignal=SIGTERM - -SendSIGKILL=no - -SuccessExitStatus=0 - -[Install] -WantedBy=multi-user.target - -# Built for ${project.name}-${project.version} (${project.name}) diff --git a/dist/linux-systemd/readme.md b/dist/linux-systemd/readme.md deleted file mode 100644 index 8399b4582..000000000 --- a/dist/linux-systemd/readme.md +++ /dev/null @@ -1,36 +0,0 @@ -# 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 <> /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 -``` -